Player = script.Parent.Parent
mouse = Player:GetMouse()
local Animation = {
Animation = {
{ id = "http://www.roblox.com/asset/?id=320954787"}}}
function onKeyDown(key)
key = key:lower()
if key == "q" then
Player.Character.Humanoid:LoadAnimation(Animation)
end
end
mouse.KeyDown:connect (onKeyDown)
Output: Script 'Players.Player1.Backpack.LocalScript', Line 11

5 comments
Are you creating the animation anywhere?
It also appears that you are not embedding the array properly
You are passing a table to the load animation function?
instead of Animation use Animation[1][1] as you're using a multi-dimentional-array
Thanks guys!