Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my moving platform somtimes rotate?

Asked by 2 years ago
Edited 2 years ago

Here's what it is sometimes doing.

The part has a BodyPosition and a BodyGyro.

Here's the BodyPosition.

Here's the BodyGyro.

This is my movement script.


local part = script.Parent local A = script.Parent.Parent:WaitForChild("A") local B = script.Parent.Parent:WaitForChild("B") local dly = 5 A.Transparency = 1 B.Transparency = 1 wait(1) part.Anchored = false while(true) do part.BodyPosition.Position = A.Position wait(dly) part.BodyPosition.Position = B.Position wait(dly) end

Answer this question