So basically this script is supposed to load animations on keydown, but it's not doing so. Here's the script, I tried local script, I tried starterpack, I don't know what else to try.. Help?
User = game.Players.LocalPlayer
UserMouse = User:GetMouse()
Animation = Instance.new("Animation")
Animation.AnimationId = "http://www.roblox.com/Asset?ID=190972547"
Animation.Name = "BackFlip"
animTrack = User.Character.Humanoid:LoadAnimation(Animation)
UserMouse.KeyDown:connect(function(key) -- keydown function
if key == "q" then
animTrack:Play()
end
end)

1 comment
Do not repost your questions just because they do not get an answer.