{Solved} Tween track not visually playing?

Hello,

As what the title says, I am having some trouble with tweening the character’s Left Arm; The problem is, the tween will play and the print statement will work, but the tween does not play visually.
Here’s the Local Script:

local UIS = game:GetService("UserInputService")

local BallerBall = game:GetService("ReplicatedStorage"):WaitForChild("BallerBall")

local BWeld = BallerBall:WaitForChild("Weld")

local isBalling = false

local db = false

local plr = game.Players.LocalPlayer or game.Players.PlayerAdded:Wait()

local char = plr.Character or plr.CharacterAdded:Wait()

local Key = "E"
local KeyToThrowBall = "V"

local TS = game:GetService("TweenService")

local TI = TweenInfo.new(1)

local isBallingAgain = false

UIS.InputBegan:Connect(function(i,gpe)
	if gpe then return end
	if i.KeyCode == Enum.KeyCode[Key] and not db and not isBalling then
		db = true
		isBalling = true	
		BallerBall.Parent = char
		BWeld.Parent = BallerBall
		local leftArm = char:WaitForChild("Left Arm")
		BWeld.Part1 = leftArm
		print("Equipped Baller!")
		UIS.InputBegan:Connect(function(input,g)
			if g then return end
			if input.KeyCode == Enum.KeyCode[KeyToThrowBall] and db and isBalling then
				local goals = {["CFrame"] = CFrame.Angles(0,math.rad(30),0)}
				local track = TS:Create(leftArm,TI,goals)
				track:Play()
				print("Ready to throw...")
				track.Completed:Connect(function()
					isBallingAgain = true
					print("Balling!")
				end)
				for i = 1, 3, 1 do
					task.wait(1)
					if i == 3 and isBallingAgain then
						print("Balling..")
						
					end
				end
			end
		end)
	end	
end)

Thanks in advance.

1 Like

This is most likely due to the fact that the character is being animated already.

Why not use an action animation instead? They are easier to script and work even while core animations are playing.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.