Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

ROBLOX Studio's tool is acting odd. It's not responding to functions..?

I was working on a Tool script and once while I was running it, it just... Stopped. I checked the script, nothing was broken. I ran a simple function that prints "Cool" when the tool is equipped and it didn't work. Did ROBLOX change its tool lingo or..?

2 comments

1

post_code_

0

Like the others said "just stopped" doesn't help us much unless you supply us with the code.

1 answer

Have you checked Roblox Wiki? http://wiki.roblox.com/index.php?title=Tools

Please post the code.

Make sure you have a correct function.

local tool = script.Parent
 
local function onEquip()
 --Text here
end
 
local function onUnequip()
  --Text here
end
 
local function onActivate()
  --Text here
end
 
local function onDeactivate()
  --Text here
end
 
tool.Equipped:connect(onEquip)
tool.Unequipped:connect(onUnequip)
tool.Activated:connect(onActivate)
tool.Deactivated:connect(onDeactivate)

This discussion is preserved as it was. New answers, comments, and votes are closed.