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

How to move large models smoothly?

Hey, whats the best way to move a large model from one place to a other? I have tried Cframe but its not smooth and tweenservice but I can't get it to work.

1 answer

There is a simple way to move a model smoothly.

Use Model:MoveTo(Position), like so:

Position = Vector3.new(10,10,10) --Set this to the end position
local model = Instance.new("Model", game.Workspace)

-- Im putting parts into the model
local part1 = Instance.new("Part")
part1.Size = Vector3.new(4, 4, 4)
part1.Position = startPosition
part1.Anchored = true
part1.BrickColor = BrickColor.new("Bright yellow")
part1.Parent = model
 
local part2 = Instance.new("Part")
part2.Size = Vector3.new(2, 2, 2)
part2.Position = startPosition + Vector3.new(0, 3, 0)
part2.Anchored = true
part2.BrickColor = BrickColor.new("Bright blue")
part2.Parent = model
 
-- I set the primary part
model.PrimaryPart = part1
model.Parent = game.Workspace
-- I move the model.
model:MoveTo(Position)

######Be kind. ~Goulstem

2 comments

0

Yes, so the problem with this is that it just tp's the model, I need to have it move to the location

0

Well for that you are going to need to something a bit advanced, you need to take a Cframe, and move it, then move the other part's Cframes based on position of the cframe, like 5 studs above and stuff like that.

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