I am trying to make something like your able to change which hand is holding the ball but the animation isn’t playing when I equip the ball what is wrong?
local Tool = Football.Parent
local Hold = Football.Holding
local Debounce = true
local InputService = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local LHold = Humanoid:LoadAnimation(script.LeftHold)
local RHold = Humanoid:LoadAnimation(script.RightHold)
local LTransition = Humanoid:LoadAnimation(script.LeftTransition)
local RTransition = Humanoid:LoadAnimation(script.RightTransition)
Tool.Equipped:Connect(function()
LHold:Play()
end)
InputService.InputBegan:Connect(function(Input, gameProcessedEvent) if Debounce == true then
if Input.KeyCode == Enum.KeyCode.C then
LTransition:Play()
wait()
LHold:Play()
LTransition:Stop()
Hold.Value = "Left"
end
end
if Input.KeyCode == Enum.KeyCode.Z then
RTransition:Play()
wait()
RHold:Play()
RTransition:Stop()
Hold.Value = "Right"
end
end)