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 8 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?

01Ship = script.Parent
02Value = Ship.Position
03FlightCourse = game.Workspace.ShipPostition
04x, y, z = Value.x, Value.y, Value.z
05 
06while wait () do
07x, y, z = x + 0.01, y + 0.01, z + 0
08for i = 1,0.1 do
09wait(0.1)
10Ship:MoveTo(FlightCourse.PointA.Position + Vector3.new (x, y, z))
11wait(0.1)
12end
13end

1 answer

Log in to vote
0
Answered by 8 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