I can’t seem to tween a part with a floder inside of it with seats the seats dont tween.
game:GetService("ReplicatedStorage").Values.StoryValues.BusTween:GetPropertyChangedSignal("Value"):Connect(function()
local bus = game.Workspace.HouseMap.SchoolBus
local TweenService = game:GetService("TweenService")
local Position = bus.Position
local info = TweenInfo.new(
2, -- Time animating
Enum.EasingStyle.Linear, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
0, -- Repitions
false, -- Reverse post tween?
0 -- Delay time
)
local goal = {
Position = bus.Position + Vector3.new(200, 0, 0) -- adds minus 10 Y to the old position
}
end)
Are the seats welded to the bus? If so, use CFrames.
As I said before in a previous post:
It’s the same as having anything welded to another thing, it’ll destroy the weld, hence why roblox doesn’t move it at all. Instead, just do something like this:
local TweenService = game:GetService("TweenService")
game:GetService("ReplicatedStorage").Values.StoryValues.BusTween:GetPropertyChangedSignal("Value"):Connect(function()
local bus = game.Workspace.HouseMap.SchoolBus
local Position = bus.Position
local info = TweenInfo.new(
2, -- Time animating
Enum.EasingStyle.Linear, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
0, -- Repitions
false, -- Reverse post tween?
0 -- Delay time
)
local goal = {
CFrame = bus.CFrame + Vector3.new(200, 0, 0) -- adds minus 10 Y to the old position
}
end)
Also, I’m not sure if you’ve played the tween yet, since there isn’t any tween instance shown in this script, but that’s also the reason why it’s not working. Lol
Hopefully this helps you, though! If it doesn’t’t, just make another post or reply to this post regarding it. Otherwise, have fun and good luck making your story game!