Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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..?

1
post_code_ Goulstem 8144 — 7y
0
Like the others said "just stopped" doesn't help us much unless you supply us with the code. gitrog 326 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

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)
Ad

Answer this question