Activated (Event)
From Legacy Roblox Wiki
Jump to navigationJump to search
Activated ( ) | |
Description | Fired when the player clicks while a tool is equipped. |
---|---|
Member of: | Tool, StudioTool |
Example (to be executed while a player is in the game)
This example prints "Tool activated" when a player clicks while 'tool' is equipped.
local tool = Instance.new("Tool")
tool.Parent = game.Players.Player.Backpack
function onActivation()
print("Tool activated")
end
tool.Activated:connect(onActivation)