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

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

Asked by 5 years ago
Edited 5 years ago

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

Log in to vote
0
Answered by
EgoMoose 802 Moderation Voter
5 years ago

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

0
Thank you. Edbotikx 99 — 5y
Ad

Answer this question