Can somebody help me, I don't know how to use the keydown event, and I'd like someone to explain to me how to do it and make animations, and If you're nice enough you'll also tell me about velocity as in body objects.
User = game.Players.Estomac UserMouse = User:GetMouse() Animation = Instance.new("Animation") Animation.AnimationId = "http://www.roblox.com/Asset?ID=0" -- Animation's id Animation.Name = "Name" animTrack = User.Character.Humanoid:LoadAnimation(Animation) UserMouse.KeyDown:connect(function(key) -- keydown function if key == "p" then animTrack:Play() end end)