Hello, so i was trying to do a axe gear (to try and make a game similar to Lumber Tycoon 2) but the Tool.Activated is not firing.
What did i try?
So far i tried making my part of the script where it detectects if its equipped both server and client sided, i tried checking how they did this in free sword models and they did not work either. I even checked on the devforum and documentary to see if i was doing it wrong.
My Issue? After clicking while i have the tool equipped, it does not detect that i activated it.
What do i want to achieve? I want to see if its a bug, or i am doing it wrong
Some more details (the script i used to attempt debuging it, but it also is used on my gear.)
local Tool1 = script.Parent
Tool1.Equipped:Connect(function()
print("Equipped")
end)
Tool1.Activated:Connect(function()
print("Activated")
end)
while wait(2) do
print(Tool1.Parent)
end
Try putting the Activated function inside the tool.
local Tool1 = script.Parent
Tool1.Equipped:Connect(function()
print("Equipped")
Tool1.Activated:Connect(function()
print("Activated")
end)
end)
while wait(2) do
print(Tool1.Parent)
end
Well, since you can detect the equipping event, you could use a variable and set it to true when the tool is equipped and set it to false when unequipped and detect if the player clicked mousebutton1 using UserInputService (or ContextActionService) then check if the equipped variable is true then manually activate the tool Tool:Activate(), i think you also need ManualActivationOnly to be set to true.