local hum = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Humanoid")
local anim = Instance.new("Animation")
anim.Parent = script
anim.AnimationId = "rbxassetid://3130655499"
game:GetService("UserInputService"):Connect(function(i,gpe)
if gpe == false and i.KeyCode == Enum.KeyCode.F then
hum:LoadAnimation(anim):Play()
end
end)
this is the script i am using and the animation is the one I made, I am new with rthro and i haven't had any success this month with animations playing, and I really want to learn how to do this can someone show me a well put together explanation or point out my mistakes?

1 comment
You need to load the animation outside of your event.