Moving muliple models at once?

So, I always have problems with tweening models, but how do I tween multiple?

I have this folder with multiple models of a raod in it. and they should al move at the same time to one direction, but I have no idea how I would do that, so they don’t drift a tiny bit away from each other.

Could anyone help me with this?

1 Like

i seem to face this issue quite frequently aswell. since you seemingly already have a solution for tweening one model, here are two methods i can think of to help:

  • method 1: tween one big model
    the easiest and purest solution! just tween one big model and theres your solution

  • method 2: looping and moving each model
    so i’m not sure if you have JUST the roads in the model and whatnot, and if you don’t let me know, but i assume you do:

local models_parent = script.Parent
for _, model in models_parent:GetChildren() do
	if not model:IsA("Model") then
		continue -- because in this script we already have a script inside this model, just skip over any iterations that aren't models
	end
	
	print(model:GetFullName()) -- you can work from here :)
end

hope this helps, and if you have any issues lmk :stuck_out_tongue:

1 Like

I don’t think they will all tween at exactly the same time?

if there are no waits in your code, they should all run at the same time. a for loop is (pretty much) instant and simultaneous. so that should work fine!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.