Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Gamepass tools

How do you script game pass tools, when a player has a game pass, they get tools in game?

1 answer

Well, you can go to the wiki and search up the PlayerHasPass Method. The code for it is as follows..

id = 1337 --gamepass id
game.Players.PlayerAdded:connect(function(plr)
repeat wait() until plr.Character
if Game:GetService("GamePassService"):PlayerHasPass(plr, id) then
tool = game.ServerStorage["Tool Name"]
tool:clone().Parent = plr.Backpack
tool:clone().Parent = plr.StarterGear
end
end)

1 comment

0

cool

This discussion is preserved as it was. New answers, comments, and votes are closed.