Still have questions? Join our Discord server and get real time help.
0

# What is the event for when a tool is in use?

Like I just pressed 1 to open the tool and I want something to happen

if Tool.Open = true maybe?

1
Aethex 255
6 years ago

You would use the Equipped event.

If the script inside was a local script,

script.Parent.Equipped:connect(function() -- Runs the anonymous function when equipped

game.Players.LocalPlayer.Character:BreakJoints() -- Kills the player who equipped the tool

end)

0
My apologies for I neglected to mention HopperBins and I did not mention the unequipped event. Please up-vote Hashiru's answer. Aethex 255 — 6y
1
Tool = script.Parent

function Equip()
end

function Unequip()

Tool.Selected:connect(Equip)