Animation not playing correctly and tweening not working

So I am trying to make a system where if you are sitting on a seat then it will bring the humanoid with the seat to the destination with a custom animation. Then send the seat back but we have a couple of problems.

  1. The Tween will not play
  2. Animation plays but then stops
    Code:
game.ReplicatedStorage.Events.Slide.OnServerEvent:Connect(function(plr)
	local TweenService = game:GetService("TweenService")
	local Humanoid = plr.Character.Humanoid
Humanoid.Seated:Connect(function()
		local Seat = game.Workspace.Seat
	local Animation = game.ReplicatedStorage.SlideAnim
	local SlideAnim = Humanoid:LoadAnimation(Animation)
	SlideAnim.Priority = Enum.AnimationPriority.Action
	local Time = 0.5
	local tweenInfo = TweenInfo.new(
		0.5,
		Enum.EasingStyle.Linear,
		Enum.EasingDirection.In,
		1,
		false,
		0 
	)
	local tweenInfo1 = TweenInfo.new(
		0.5,
		Enum.EasingStyle.Linear,
		Enum.EasingDirection.In,
		1,
		false,
		0 
	)
	SlideAnim:Play()
	local tween = TweenService:Create(Seat, tweenInfo, {Position = game.Workspace.Blue1.Position})	
	wait(Time)
	tween:Play()
	wait(Time)
	local tween1 = TweenService:Create(Seat, tweenInfo, {Position = game.Workspace.Blue2.Position})
	tween1:Play()
	wait(Time)
	local tween2 = TweenService:Create(Seat,tweenInfo, {Position = game.Workspace.Blue3.Position})
	tween2:Play()
	wait(Time)
	local tween3 = TweenService:Create(Seat,tweenInfo, {Position = game.Workspace.Blue4.Position})
	tween3:Play()
	wait(Time)
	SlideAnim:Stop()
	wait(0.1)
	Humanoid.Jump = true
	local tweenBack = TweenService:Create(Seat,tweenInfo1, {Position = game.Workspace.Blue1.Position})
	tweenBack:Play()
	end)
end)
2 Likes