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
sjr04
(uep)
January 28, 2021, 9:14pm
#2
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
lluckvy
(aaron)
January 28, 2021, 9:18pm
#7
no its just a server script inside the tool
The documention page says it has to be in a local script
lluckvy
(aaron)
January 28, 2021, 9:20pm
#10
Read the developer hub link I sent
Icey_CD
(Icey)
January 28, 2021, 9:29pm
#11
It can still be fired from a server script, I just did it.
2 Likes
heII_ish
(heII_ish)
January 28, 2021, 9:30pm
#12
Make sure Tool.ManualActivationOnly
is disabled
6 Likes
Make sure the tool has a child named “Handle”.
You saved me, thank so so much, ive been at this for days lol