Rotation grid system issue

  1. What do you want to achieve?
    I want the rotation grid glitch to stop occuring

  2. What is the issue? Include screenshots / videos if possible!
    its easier if i show you: https://youtu.be/SXvWj-3g1sc

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Yes, i’ve looked everywhere and tried resolving the issue myself but no luck.

		local function round(number)
			print("NUM: "..number, "INCREMENT: "..increment)
			
			return math.floor((number / increment) + .5) * increment
		end