I don’t really understand why this happens and I don’t know how to fix it, any help is welcome.
Do you set the speed back to normal after the script is done?
If possible, could you try showing me the entire Script?
wdym by setting speed back to normal? rotation propertie just changes the orientation of the gradient by numbers, the script adds 2 for each frame so it does not stop moving.
When you activate the function the first time, (mouseEnter), it works fine, but when you do it more times it adds more speed for some reason.
this is the first time I use runservice so I don’t know if there is anything I forgot to code
renderstepped will run every frame, which might be the issue. I have not researched runservice much, so I am not entirely sure.
I tried with while task.wait() do, but the result is the same
You’d probably have to add a limit to the rotation speed and stop renderstep from running. (after the user hovers away from the button)
but like I said, I have not used runservice much, so I am not experienced with it.
Everytime you call the Degree function, you are creating a new RenderStepped connection instead of resuming the same connection.
oh thanks you! I have now understood the problem and moved the coroutine out of the function and it worked.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.