I am trying to make it so when I press "e" on the keyboard, it plays an animation. I feel like the code should be right, but it says in the studio output: "Animation "https://www.roblox.com//asset/?id=https://www.roblox.com/library/963441784/Watch-Check-Animation&serverplaceid=0" failed to load in "Animation.AnimationId": Animation failed to load"
local mouse = game.Players.LocalPlayer:GetMouse()
local char = game.Players.LocalPlayer.Character
enabled = false
function KeyD(key)
if enabled then
enabled = false
key = key:lower()
if key == "e" then
local emote = Instance.new("Animation")
emote.AnimationId = "https://www.roblox.com/library/963441784/Watch-Check-Animation"
local animloader = char.Humanoid:LoadAnimation(emote)
animloader:Play()
end
enabled = true
end
end
Thanks for the help. I guess.

2 comments
What scripters usually do is local uis = game:GetService("UserInputService") then do uis.InputBegan:Connect(function(input,process) end) instead of making a fat line of code
Every scripter is different. Also, why make a variable if youre only going to use it once?