Im trying to make a tween that will move a train/bus thing. It seems like its not moving at all when I try to play it. Is something wrong with my script?
local primary = workspace.Train.PrimaryPart
local tween1 = game:GetService("TweenService"):Create(primary, TweenInfo.new(20,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut, 0, false, 0), {CFrame = primary.CFrame * CFrame.new(primary.Size.X + 411,0,0)})
local debounce = false
workspace.Train.TrainFloor.Touched:Connect(function(hit)
if hit.Parent.Name == game.Players.LocalPlayer.Name and debounce == false then
tween1:Play()
debounce = true
end
end)