Activated (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>MrNicNac
Fixed event description.
>MrNicNac
Fixed event description.
(No difference)

Revision as of 14:30, 27 December 2010

Activated ( )
Description Fired when the player clicks while a tool is equipped.
Member of: Flag, Tool


Example
local tool = Instance.new("Tool")
tool.Parent = game.Players.Player.Backpack

local function onActivation()
  print("Tool activated")
end

tool.Activated:connect(onActivation)