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

Give item to specific player with a specific rank in a group? [More in bio]

Asked by 4 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

I have a tool in starterpack, and I need the player when they walk into a brick holding the tool, it gives the tool to the person with a specific rank in a group. I click a player while holding the tool, and it gives the tool that I am holding to the player I clicked, but, the player that I click must have a specific rank in the group to receive the item. If I click a player with the tool and they're NOT in the specific rank, they don't receive the item.

Also,

another way to do this is to: When I click the player with the tool equipped, (the player must be in the specific rank to receive it), a GUI pops up on their screen, but they don't receive the item. I do not have a script since I do not know what to do. I need guidance. Any help is appreciated, thank you in advance.

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

Ok. Ya got me confused at start, but Ill try to shorten it to understand better:

You have a tool brick that dishes out tools, but you want it to give tools only to players that have the required rank in the group, right? You also want to be able to replicate the tool to other players if you click on them with said tool out....but they too have to be that specified rank.

Thats easy, man. Just use this link to find out what rank they are in. Then use the clone feature hooked up with a conditional to spread the herpetic tool

(I would do code examples, but you didnt give me ANYTHING to work with, and my time isnt that free)

Ad

Answer this question