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 without registration, duration hours minute second in high quality. This video was added by user fil1pex 16 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 687 once and liked it 18 people.