I was making a abilty with ContentActionService and when i tried to play the animation when the ContentActionService was binded + keypressed it wouldn’t play at all.
here is my code
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local Animator = Humanoid:WaitForChild("Animator")
local Charge = tool:WaitForChild("Charge")
local ChargeAnim = Animator:LoadAnimation(Charge)
local function Move1(actionName,inputState)
if actionName == ActionList[2] and inputState == Enum.UserInputState.Begin then
ChargeAnim:Play()
end
end
tool.Equipped:Connect(function()
Abilities.Parent = Player.PlayerGui
ContentActionServie:BindAction(ActionList[2],Move1,true,Enum.KeyCode.Y)
end)
tool.Unequipped:Connect(function()
Abilities.Parent = tool
ContentActionServie:UnbindAction(ActionList[2])
end)
the ContentActionService works find when i press the correct key but its just the animation.
keep in mind i just published this animation and had the priority set to action
*Update:
it works with my Old animations but it doesn’t work with the new ones i create
idk if this a bug or just taking some time.