Tool.Activated not firing?

I’m trying to make a tool and I noticed that the tool.activated function won’t fire. I know nothing is stopping it because the only thing of code in the script is:

script.Parent.Activated:Connect(function()
    print("Used")
end)

and if I put the print outside the activate function, it prints, so it is only a problem with activation. Any help would be nice.

3 Likes

You are missing an end to end off the function body.

script.Parent.Activated:Connect(function()
    print("Used")
end)
2 Likes

I didn’t directly copy and paste the code and must’ve forgot to put that, it isn’t the problem though

Also check if Tool.RequiresHandle is checked, it probably shouldn’t be unless you know for sure that’s not the issue.

4 Likes

It is checked and I have the handle in the tool

Ok, shouldn’t be the problem then.

1 Like

https://developer.roblox.com/en-us/api-reference/event/Tool/Activated

Just to make sure, this is a local script right?

no its just a server script inside the tool

The documention page says it has to be in a local script

Read the developer hub link I sent

It can still be fired from a server script, I just did it.

2 Likes

Make sure Tool.ManualActivationOnly is disabled

6 Likes

Make sure the tool has a child named “Handle”.

  1. Check if “RequiresHandle” property is set to false if you don’t have a handle. Vice versa.
  2. Make sure script is actually running by printing something.
  3. Troubleshoot with In-Experience Tools | Documentation - Roblox Creator Hub
2 Likes

You saved me, thank so so much, ive been at this for days lol