I have a function that makes the slide on my gun go back and I want to stop that function and some other functions if the tool is unequipped but I’m not sure how I would go about it
basically just
Tool.Unequipped:Connect(function()
i want to stop the function here.
Equipped = false
cdown = false
end)
you could put the Unequipped signal inside the function and then just do “return” or you could have a bool value, and set it to true when the Unequipped signal fires. Then the function sees that and stops.
I do recommend disconnecting the signal after it has fired tho else it will run every time the tool gets unequipped even when the function has stopped.