Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- enabled = true
- local userInputService = game:GetService("UserInputService")
- jumps = 0
- userInputService.InputBegan:connect(function(input, event)
- if not event then
- if input.KeyCode == Enum.KeyCode.R and enabled == true and player.Character.Humanoid.Jump ~= true then
- enabled = false
- local humanoid = player.Character:FindFirstChild("Humanoid")
- local animation = Instance.new("Animation", player.Character)
- animation.AnimationId = "http://www.roblox.com/Asset?ID=277361183";
- local loadedAnimation = humanoid:LoadAnimation(animation)
- loadedAnimation:Play()
- animation.Name = "FrontFlip"
- local force = Instance.new("BodyPosition")
- local y = player.Character.Torso.Position.Y + 30
- local x = player.Character.Torso.Position.X
- local z = player.Character.Torso.Position.Z
- force.position = Vector3.new(x,y,z)+(player.Character.Torso.CFrame.lookVector * 40)
- force.Parent = player.Character.Torso
- force.maxForce = Vector3.new(400000000000000000000,400000000000000000000,400000000000000000000)
- wait(0.1)
- force:remove()
- wait(2)
- enabled = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment