How do you script game pass tools, when a player has a game pass, they get tools in game?
Well, you can go to the wiki and search up the PlayerHasPass Method. The code for it is as follows..
1 | id = 1337 --gamepass id |
2 | game.Players.PlayerAdded:connect( function (plr) |
3 | repeat wait() until plr.Character |
4 | if Game:GetService( "GamePassService" ):PlayerHasPass(plr, id) then |
5 | tool = game.ServerStorage [ "Tool Name" ] |
6 | tool:clone().Parent = plr.Backpack |
7 | tool:clone().Parent = plr.StarterGear |
8 | end |
9 | end ) |
Locked by User#19524
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?