Going a bit further in depth though, I’m trying to make a tool which needs the Activated function of a tool. My test script that I threw together wasn’t printing after activating the tool… very confusing right? So I go to the creator hub and grab a demo, paste it in, blah blah blah…
(demo in question - In-Experience Tools | Documentation - Roblox Creator Hub)
Everything should work now, the script is in the tool,
the script is enabled, I can pick up the tool, etc…
I start a playtest and use the tool and…
where’s the activated function?
local tool = script.Parent
local function onEquip()
print("The tool is now equipped.")
end
local function onUnequip()
print("The tool is now unequipped.")
end
local function onActivate()
print("The tool is now activated.")
end
local function onDeactivate()
print("The tool is now deactivated.")
end
tool.Equipped:Connect(onEquip)
tool.Unequipped:Connect(onUnequip)
tool.Activated:Connect(onActivate)
tool.Deactivated:Connect(onDeactivate)