Professional Documents
Culture Documents
Backflip
Backflip
Backflip
credits
wait(5)
local ca = game:GetService("ContextActionService")
local zeezy = game:GetService("Players").LocalPlayer
local h = 0.0174533
local antigrav
function zeezyFrontflip(act,inp,obj)
if inp == Enum.UserInputState.Begin then
zeezy.Character.Humanoid:ChangeState("Jumping")
wait()
zeezy.Character.Humanoid.Sit = true
for i = 1,360 do
delay(i/720,function()
zeezy.Character.Humanoid.Sit = true
zeezy.Character.HumanoidRootPart.CFrame =
zeezy.Character.HumanoidRootPart.CFrame * CFrame.Angles(-h,0,0)
end)
end
wait(0.55)
zeezy.Character.Humanoid.Sit = false
end
end
function zeezyBackflip(act,inp,obj)
if inp == Enum.UserInputState.Begin then
zeezy.Character.Humanoid:ChangeState("Jumping")
wait()
zeezy.Character.Humanoid.Sit = true
for i = 1,360 do
delay(i/720,function()
zeezy.Character.Humanoid.Sit = true
zeezy.Character.HumanoidRootPart.CFrame =
zeezy.Character.HumanoidRootPart.CFrame * CFrame.Angles(h,0,0)
end)
end
wait(0.55)
zeezy.Character.Humanoid.Sit = false
end
end
function zeezyAirjump(act,inp,obj)
if inp == Enum.UserInputState.Begin then
zeezy.Character:FindFirstChildOfClass'Humanoid':ChangeState("Seated")
wait()
zeezy.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
end
end
ca:BindAction("zeezyFrontflip",zeezyFrontflip,false,FrontflipKey)
ca:BindAction("zeezyBackflip",zeezyBackflip,false,BackflipKey)
ca:BindAction("zeezyAirjump",zeezyAirjump,false,AirjumpKey)