Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gamepass tools [closed]

Asked by 11 years ago

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

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?

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
11 years ago

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

1id = 1337 --gamepass id
2game.Players.PlayerAdded:connect(function(plr)
3repeat wait() until plr.Character
4if Game:GetService("GamePassService"):PlayerHasPass(plr, id) then
5tool = game.ServerStorage["Tool Name"]
6tool:clone().Parent = plr.Backpack
7tool:clone().Parent = plr.StarterGear
8end
9end)
0
cool Prbo1201 56 — 7y
Ad