I am currently rotating a models PrimaryPart slowly during each RenderStep. It comes out to a nice smooth rotation.
On a side note, I’ve noticed an issue regarding parts on the model. The parts near the edge of the model slowly ease away, at an outward velocity, from the middle of the model.
Here is a photo of one of the parts in the correct position.
Then a photo of the same part after running the rotation for a few minutes.
note; the Direction value is either 1 or -1. [Counterclock wise or Clockwise].
rs:BindToRenderStep("Turntable", 1, function() if not script.Stop.Value then turnSpeed = turnSpeed + (0.00001 * script.Direction.Value) if math.abs(turnSpeed) >= math.abs(0.002 * script.Direction.Value) then turnSpeed = (0.002 * script.Direction.Value) end end if script.Stop.Value then turnSpeed = turnSpeed - (0.00001 * script.Direction.Value) if script.Direction.Value >= 1 then if turnSpeed < 0 then turnSpeed = 0 end else if turnSpeed > 0 then turnSpeed = 0 end end end model:SetPrimaryPartCFrame(model:GetPrimaryPartCFrame() * CFrame.Angles(0, turnSpeed, 0)) end)
I’m kind of new to CFrame and I’m not entirely sure what’s causing the unwanted movement. Any solutions or ideas?
I really appreciate any help you can provide.