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

How can I move an entire model cleanly without MoveTo?

Asked by 10 years ago

Usually I don't have a problem with MoveTo, but as I try to move a model in this script it flickers from side to side, which ruins the entire effect. Is there any other way to move the model, or is there a mistake I'm making which is screwing up MoveTo?

01local xpos = Workspace.Model.Base.Position.x
02 
03wait(3)
04 
05 
06delay(0,function()
07for i = Workspace.Door1.Position.X, Workspace.Door1.Position.X - Workspace.Model.Base.Size.X/2, -0.2 do
08Workspace.Door1.Position = Vector3.new(i, Workspace.Door1.Position.Y, Workspace.Door1.Position.Z)
09wait()
10end
11end)
12 
13delay(0,function()
14for i = Workspace.Door2.Position.X, Workspace.Door2.Position.X + Workspace.Model.Base.Size.X/2, 0.2 do
15Workspace.Door2.Position = Vector3.new(i, Workspace.Door2.Position.Y, Workspace.Door2.Position.Z)
View all 23 lines...

1 answer

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

I don't see what is wrong with MoveTo(), but I suppose you could loop through the model with a for loop and change the CFrame of each part :/

I recommend MoveTo()

0
I'm not sure what is wrong with it two, but as the map moves upwards it moves really quickly from side to side. You can see it in my place #17 cheesecake123456 5 — 10y
Ad

Answer this question