Why does all these animations not work? They each have a certain key, but none work ;(
local Player = game.Players.LocalPlayer
local UserInputService = game:GetService('UserInputService')
local JumpAnim = script:WaitForChild('Jump')
local DabAnim = script:WaitForChild('Dab')
local TauntAnim = script:WaitForChild('Taunt')
UserInputService.InputBegan:connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Space then
local JAnim = Player.Character.Humanoid:LoadAnimation(JumpAnim)
JAnim:Play()
wait(.5)
JAnim:Stop()
elseif Input.KeyCode == Enum.KeyCode.Q then
local DAnim = Player.Character.Humanoid:LoadAnimation(DabAnim)
DAnim:Play()
wait(1)
DAnim:Stop()
elseif Input.KeyCode == Enum.KeyCode.E then
local TAnim = Player.Character.Humanoid:LoadAnimation(TauntAnim)
TAnim:Play()
wait(1)
TAnim:Stop()
end
end)
