I have created a tool with a function, at the moment the function is set so it runs forever when I get the tool out of my backpack. How can I change the script below so it stops running when I put it back in the backpack? Below is where it runs the function.
script.Parent.Equipped:connect(function(eventMouse) while true do wait(0.01) GodPowers() end end)
You'd need to use the UnEquipped event. I'm not sure what's withing your GodPowers function, but within the function that includes the UnEquipped function, you'd change everything back.