Hello yall, I dont think I should explain this much as the title speaks for itself.
But how do I make models/unions move to a certain location. So far I just tried welding all parts and placing a script to the base part and grouped em together but only the base part moved. Nothing else as I either didnt understood anything said in devforums or there really wasnt what I was looking for.
There are several scripting functions that allow you to do this. As @Forummer said, you can tween BaseParts (which includes parts, Unions, and Meshes). You can also change the part CFrame or position pretty simple (mesh.Position = Vector3.new())
However, for models there are some nice functions that can help you out.
-- As long as you have the model's primarypart set, this will move the entire model
Model:SetPrimaryPartCFrame(Cframe.new())
-- This moves a model on top of a part/location. Better for moving characters - you can move them to a part, and they'll have to spawn on top of that part.
Model:MoveTo(CFrame/position here)
This isn’t actually a tween at all. You just call these functions on the model, and the model will automatically position to the Cframe you give.
If you want a smooth, animated movement, set the model’s primary part, and tween it.
local TweenService = game:GetService("TweenService")
local part = model.PrimaryPart
local goal = {}
goal.Position = Vector3.new(10, 10, 0)
local tweenInfo = TweenInfo.new(5)
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()