Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Script to make a player flip (frontflip/backflip)? [closed]

Asked by 4 years ago

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

0
Animations could be good and then using some body gyros could do it. BradNewTypical 232 — 4y
0
i dont know how to put animations in my game Dragarted 0 — 4y

Closed as Not Constructive by User#29913, moo1210, ScuffedAI, and Leamir

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 4 years ago

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()
Ad