I tried to make an Animation script that will make you emote when you press E. But the problem is it wont play and it doesn't show any error on the output.
wait(1)
userinput = game:GetService("UserInputService")
plr = game.Players.LocalPlayer.Character
anim = plr.Humanoid:LoadAnimation(script.anim)
userinput.InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.E then
anim:Play()
end
end)

1 comment
First, check to make sure that its not the function that is wrong. Before line 7 put print("works") to see if its not the animation but maybe the function.