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

How to make a tool specific to only certain group ranks?

Asked by 9 years ago

I wanted to know how to make a tool that only specific group ranks could use in their StarterPack; whereas other people not in the group, or not existing as a high enough rank, could use. I am assuming it would look something like this:

ID=2606952
Tool=game.ReplicatedStorage.Unequip

if player:IsInGroup(ID) then
Tool:clone().Parent=player.Backpack

end

Only the two 'player' identifiers give me this, 'W001: Unknown global 'player.'' How would I tell the script when to run and how would I fix the 'Unknown global' thing? Or am I going about this all wrong?

1 answer

Log in to vote
0
Answered by
woodengop 1134 Moderation Voter
9 years ago

The code you supplied is appropriate but, you didn't define the player or could be that you did define the player but in a different block structure.

0
e.e Thank you. Brisingr360 45 — 9y
0
Dumb of me... lol Brisingr360 45 — 9y
Ad

Answer this question