local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?id=187720963"
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local animTrack = nil
local canPlay = true
Mouse.KeyDown:connect(function(key)
if key == "q" then
local player = game.Players.LocalPlayer.Character
animTrack = player.Humanoid:LoadAnimation(animation) --Load the animation Senpai
animTrack.KeyframeReached:connect(function(keyframeName)
canPlay = true
end)
end
end)
Mouse.KeyDown:connect()
So confused on why it doesnt work e.o

2 comments
Line 19 is not necessary, since you are not calling a function.
Perhaps set a parent for "Animation." Also, I believe Roblox's Id format is this: "http://www.roblox.com/assets/?id=187720963" or "rbxassetid://187720963"