Why do my animations glitch?

Hi I’m attempting to create skateboard system but im running into a bit of an issue,
I just want to smoothly transition between the riding animations but its bugging.

What i think is happening is that they are returning to the regular position instead of instantly going to the other

I have tried doing an if statement thing with no luck.

if actionName == 'TurnLeft' then
		if inputState == Enum.UserInputState.Begin then
			--anims
			Coast:Stop(0.3)
			TurnRight:Stop(0.3)
			TurnLeft:Play(0.3)
			--the actual turning
			BodyAngularVelocity = Instance.new("BodyAngularVelocity", BF)
			BodyAngularVelocity.maxTorque = Vector3.new(0, math.huge, 0)
			BodyAngularVelocity.angularvelocity = Vector3.new(0, 2, 0)
			--the velocity thing has to be removed or it just keeps spinning
			table.insert(trash, BodyAngularVelocity)
		else
			TurnLeft:Stop(0.3)
			TurnRight:Stop(0.3)
			Coast:Play(0.3)
			-- calling cleanup function removes the "trash" that was put into the table 
			CleanUp()
		end
	end
	if actionName == 'TurnRight' then
		if inputState == Enum.UserInputState.Begin then
			--anims
			Coast:Stop(0.3)
			TurnLeft:Stop(0.3)
			TurnRight:Play(0.3)
			--the actual turning
			BodyAngularVelocity = Instance.new("BodyAngularVelocity", BF) 
			BodyAngularVelocity.maxTorque = Vector3.new(0, math.huge, 0)
			BodyAngularVelocity.angularvelocity = Vector3.new(0, -2, 0)
			--the velocity thing has to be removed or it just keeps spinning
			table.insert(trash, BodyAngularVelocity)
		else
			TurnRight:Stop(0.3)
			TurnLeft:Stop(0.3)
			Coast:Play(0.3)
			-- calling cleanup function removes the "trash" that was put into the table 
			CleanUp()
			
		end
	end

nvm i made it work sorry for wasting your time