Alright, so before I tell you my issue, i'm sort of new to scripting, so forgive me for being a noob to this.
What I was trying to do was test out a script to see if I can set an animation to a keybind. What I was trying to do is set a simple quick test animation I made to a keybind. It hasn't been working, unfortunately. This is the script I wrote. Thanks. How do I fix this?
`local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/sdGSDGDSGsdGdsGSDG-item?id=265122422"
local animController = Instance.new("AnimationController") local animTrack = animController:LoadAnimation(animation)
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) if string.lower(key)== "x" then animTrack:Play() end end)

3 comments
Put some of your script in a code block
^That means copy your script, click the Lua button, and paste between the lines. It's much easier to read that way.
I can answer I am an animation expert :P