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

How do you have VIP only tools?

Asked by 10 years ago

I want to have Vip only tools, but I don't want a teleporter and givers. I am using a Game Pass and I need to use 2 tools. How do I do this?

3 answers

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

If you mean you want to give 2 tools for one gamepass then here you go. If you want to separate GamePasses, I'm sure you can edit this.

id = 1337 --Gamepass Id
game.Players.PlayerAdded:connect(function(plr)
    if plr:PlayerHasPass(plr, id) then
        tool_one = game.ServerStorage["Tool Name Here"]
        tool_two = game.ServerStorage["Tool Name Here"]
        repeat wait() until plr.Backpack
        tool_one:clone().Parent = plr.Backpack
        -- tool_one:clone().Parent = plr.StarterGear
        --Above is if you want it to remain with them
        tool_two:clone().Parent = plr.Backpack
        --tool_two:clone().Parent = plr.StarterGear
        --Above is if you want it to remain with them
    end
end)
0
Thank you for you help. That was faster than I expected to get answers. I will use this. collinman60 10 — 10y
0
No problem. Shawnyg 4330 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

Use a Team tool script. There are some scripts that will give a specific team tools. You can insert the tools into the the team VIA studio. Just insert the script under the team you want to have the tools.

0
He didn't say he made teams. Shawnyg 4330 — 10y
Log in to vote
0
Answered by 10 years ago

If you know how to use PlayerHasPass and stuff, then just put the tools in ServerStorage, and then :clone them into the players StarterPack, and Backpack, if they have the pass.

0
StarterGear* systematicaddict 295 — 10y

Answer this question