How to create a tool gamepass - Roblox Studio tutorial #5

Published: 16 August 2024
on channel: fil1pex
687
18

script:
local Players = game:GetService("Players")
local MarketPlaceService = game:GetService("MarketplaceService")
local GamepassID = YOUR GAMEPASS ID

Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if game.ReplicatedStorage:FindFirstChildOfClass("Tool") and GamepassID ~= 0 then
if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, GamepassID) then
game.ReplicatedStorage:FindFirstChildOfClass("Tool"):Clone().Parent = player.Backpack
end
end
end)
end)

Please leave a like and subscribe, i'm giving my best to make these tutorials!

Song: Careful Steps


Watch video How to create a tool gamepass - Roblox Studio tutorial #5 online, duration hours minute second in high quality that is uploaded to the channel fil1pex 16 August 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 687 times and liked it 18 visitors.