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

Does anyone know the script of click to give npc tool?

I need a script of, if you click the npc with ur tool equipped, ur tool will be given to the npc

2 answers

✓ Accepted answer

Please Don't Request scripts!

I will guide you to some links, So you can read them and learn by yourself

1. First off What is a tool?

Link: https://developer.roblox.com/en-us/api-reference/class/Tool Tools are objects that a Humanoid object can equip. For players, they are stored in a Backpack object parented to a Player object. In-game

2. Tool Events

A. Equipped() Event:

Fired when the tool is equipped For more Info: https://developer.roblox.com/en-us/api-reference/event/Tool/Equipped

B. Activated() Event:

Fired when the player clicks while a tool is equipped For more info: https://developer.roblox.com/en-us/api-reference/event/Tool/Activated

That's it, The rest is up to you

3 comments

0

Hi, but when i go into the site, it said: about:blank#blocked

0

nvm i got it working

0

okay can you accept it as an answer then?

Learn to script instead of asking for a script written for you. It works like a charm.

1 comment

0

is there any sites to learn? I'm urgent to learn scripting.

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