Trying to come up with a script that plays an animation once "q" is pressed, not seeming to work... Is anything wrong?
Should i be doing it differently?
local Player = game.Players.LocalPlayer
local Animation = Instance.new("Animation",script)
Animation.AnimationId = "483517771"
local UIS = game:GetService("UserInputService")
UIS.InputBegan:connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Q then
local NewAni = Player.Character.Humanoid:LoadAnimation(Animation)
NewAni:Play()
end
end)
end)
When i do press q, the output gives me "00:30:39.265 - Animation failed to load : Players.Erythia.PlayerGui.LocalScript.Animation"
Any help or advice would be great, thanks!

1 comment
It works, thanks --> https://twitter.com/RBLX_Hiraeth/status/766889421782134785?lang=en