So i had an issue where none of my tools i created would fire Activated event a couple months back, decided not to bother with tools untill now.
No matter LocalScript or Script, in Workspace or StarterPack, directly fired or through a function like in the picture…It will not fire?!
Well, I have no idea why it’s not working. When I’m working with tools, I never really use Activated. I always thought that this was deprecated (don’t know why).
local Mouse = Player:GetMouse()
Mouse.Button1Down:Connect(function()
-- This shouldn't be necessary if you have a server script, just check it from there
-- maybe you want to do something before firing to the server
if not (axe.Parent == character) then
return
end
Foo()
end)
Have you enabled ManualActivationOnly in the tool’s properties tab? If it’s on then disable it, then it should work. Or try making the Handle a normal part, not a meshpart.
I think what the problem is is that you are getting the plr variable when you are in a local script. Remove the plr variable in the function I think it will work.