Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Part moving via script teleports when stuff is in the way?

It's supposed to be a wall that comes up from the ground, but when it touches the bottom of the ground, it teleports to the top.

  IWall.Ice.CFrame = Player.Character.Torso.CFrame*CFrame.new(0, -20, -15)
           for i = 1,20 do
	       IWall.Ice.Position = IWall.Ice.Position + Vector3.new(0,1,0)
           wait (0.1)
end

1 answer

✓ Accepted answer

Make sure the part is anchored and then use CFrame as opposed to Position.

1 comment

0

Thank you.

This discussion is preserved as it was. New answers, comments, and votes are closed.