How to do CFrame Global Rotation!

Hello everyone,

  • I am making my game and i came across a problem Which is I want to rotate (Part,Model) globally
  • so I do a bunch of research I found that they said to use :ToWorldSpace() will work, However for my case is not working ,Then i found another solution that work for me so i decide to share it on since It take me a bunch of time to get the solution.
  • So I leave this as resources for other developer to find more easily and save time.

Function:

local Global_Rotation = function(Part:Part,Angle:CFrameValue)
	Part.CFrame = Angle * (Part.CFrame - Part.Position) + Part.Position
	return
end

Hope you find this helpful!:sparkling_heart:

1 Like