I’ve seen many posts related to this same issue and yet their solutions are not working on my end.
Basically, I have a model consisting of many parts, and all these parts are welded to each other and unanchored, then welded to an anchored main part which then has its position tweened.
All the solutions suggested that the welded parts should be unanchored and then welded to an anchored part which will be tweened, however, this is not working for me. The main part moves normally, yet the other parts are left behind.
How can I get this to work? I just want the model and its parts to be moved alongside the tweened main part.
This is my code:
local tweenservice = game:GetService("TweenService")
local bus = script.Parent
local route = workspace.BusRoute
local destination = 0
local function drive()
local target = route:FindFirstChild(destination).CFrame
print(target)
local goal = {}
goal.CFrame = target
local traveltime = (bus.PivotPart.Position - route:FindFirstChild(destination).Position).Magnitude / 50
print(traveltime)
local tweenInfo = TweenInfo.new(traveltime)
local tween = tweenservice:Create(bus.PivotPart, tweenInfo, goal)
tween:Play()
end
drive()