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

How do I make a hat give players tools (they're wearing the hat)? [closed]

Asked by 10 years ago

It's similar to a VIP door but I'm terrible at player stuff except for GUIs. Can you give me code? like: (except actual working LUA)

texture="hat texture"
if player has the hat texture then give <tool>

also I want it so that if they drop the hats, they lose the tools associated with the hat, and if they pick it up again they regain it. This sounds totally annoying to do, and I have no clue how to do it. Seems similar to a VIP door except there are a few major differences. Please don't answer if you won't give me a full answer. I really appreciate it! Thanks :D

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?