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

How do I make a script enable its self when I equip a tool?

Asked by 3 years ago

I've been trying to do it but I can't figure it out.

1 answer

Log in to vote
1
Answered by
5LZM 5
3 years ago
Edited 3 years ago

This should be it.

ToolName.OnEquipped:Connect(function() -- Detects when you equip it
    scriptName.Enabled = true -- Enables the script
end)
0
Thanks, I have a question where do I put the script? Boringwerwer9 0 — 3y
0
Make a script inside the tool 5LZM 5 — 3y
0
Ok thanks Boringwerwer9 0 — 3y
0
Accept as solution if this answered your question (it's right, I was going to say the same thing) ElBamino 153 — 3y
Ad

Answer this question