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

Trying to use ":MoveTo" to make a model move smoothly and not teleport, but not working?

Asked by 7 years ago

Not getting any script errors so I am confused as to why it's not working if I am trying to move the model on it's own accord with a loop. Am I missing something important here?

Ship = script.Parent
Value = Ship.Position
FlightCourse = game.Workspace.ShipPostition
x, y, z = Value.x, Value.y, Value.z

while wait () do
x, y, z = x + 0.01, y + 0.01, z + 0
for i = 1,0.1 do
wait(0.1)
Ship:MoveTo(FlightCourse.PointA.Position + Vector3.new (x, y, z))
wait(0.1)
end
end

1 answer

Log in to vote
0
Answered by 7 years ago

I got it done, never mind. Figured it out, well in a different way. More rudimentary method, but none-the-less functional and smooth. I don't need an answer now, merci anyway.

Ad

Answer this question