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

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

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

✓ Accepted answer

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.

2 comments

0

e.e Thank you.

0

Dumb of me... lol

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