Ok I had this code to where it would rotate like a realistic door on Server Scripts, but when i put it into a Local Script it rotates instantly and not as good as it did in the Server Script. And no i cant keep this in the ServerScript as it wont work when a Client touches the door.
What can i do to make this rotate nice again?
Increment = -96 debounce = false function rotate(model, amount) for i=1, math.abs(amount/1) do model:SetPrimaryPartCFrame(model.Parent.Hinge.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)) wait() end end
You have a debounce value, but you don't use it. That's probably the issue.