I have got a game coming along and i need help making a script where your player frontflips/backflips when a key is pressed i would like the keys to be q and e
COMMUNITY QUESTION
Script to make a player flip (frontflip/backflip)?
1 answer
There should be a plugin called "Build Rig" in your studio. Make an r15 block rig (best for animating) Animate that with the "Animation Editor" Script. When done, export it, and name it. Copy the id for the animation. Then once you keybind a script to "q" and "e". Go to properties, and paste the animation ID into there.
Write this into your script:
local humanoid = game.Players:FindFirstChild("Humanoid")
local animation = instance.new("Animation")
animation.Parent = humanoid.Parent
animation.AnimationId = "Paste your id here"
animation.Name = "Animation"
local animate = humanoid.Parent.Animation:LoadAnimation(humanoid.Parent.Animation)
(put your keybinding script here)
animate:Play()
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Animations could be good and then using some body gyros could do it.
i dont know how to put animations in my game