Advertisement
TheInsaneScripter77

Flip script

Jan 19th, 2021
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.29 KB | None | 0 0
  1. --X to backflip,Z to front flip,C to infinity jump--
  2. wait(5)
  3.  
  4. --[[ Info ]]--
  5.  
  6. local ver = "2.00"
  7. local scriptname = "feFlip"
  8.  
  9.  
  10. --[[ Keybinds ]]--
  11.  
  12. local FrontflipKey = Enum.KeyCode.Z
  13. local BackflipKey = Enum.KeyCode.X
  14. local AirjumpKey = Enum.KeyCode.C
  15.  
  16.  
  17. --[[ Dependencies ]]--
  18.  
  19. local ca = game:GetService("ContextActionService")
  20. local zeezy = game:GetService("Players").LocalPlayer
  21. local h = 0.0174533
  22. local antigrav
  23.  
  24.  
  25. --[[ Functions ]]--
  26.  
  27. function zeezyFrontflip(act,inp,obj)
  28.     if inp == Enum.UserInputState.Begin then
  29.         zeezy.Character.Humanoid:ChangeState("Jumping")
  30.         wait()
  31.         zeezy.Character.Humanoid.Sit = true
  32.         for i = 1,360 do
  33.             delay(i/720,function()
  34.             zeezy.Character.Humanoid.Sit = true
  35.                 zeezy.Character.HumanoidRootPart.CFrame = zeezy.Character.HumanoidRootPart.CFrame * CFrame.Angles(-h,0,0)
  36.             end)
  37.         end
  38.         wait(0.55)
  39.         zeezy.Character.Humanoid.Sit = false
  40.     end
  41. end
  42.  
  43. function zeezyBackflip(act,inp,obj)
  44.     if inp == Enum.UserInputState.Begin then
  45.         zeezy.Character.Humanoid:ChangeState("Jumping")
  46.         wait()
  47.         zeezy.Character.Humanoid.Sit = true
  48.         for i = 1,360 do
  49.             delay(i/720,function()
  50.             zeezy.Character.Humanoid.Sit = true
  51.                 zeezy.Character.HumanoidRootPart.CFrame = zeezy.Character.HumanoidRootPart.CFrame * CFrame.Angles(h,0,0)
  52.             end)
  53.         end
  54.         wait(0.55)
  55.         zeezy.Character.Humanoid.Sit = false
  56.     end
  57. end
  58.  
  59. function zeezyAirjump(act,inp,obj)
  60.     if inp == Enum.UserInputState.Begin then
  61.         zeezy.Character:FindFirstChildOfClass'Humanoid':ChangeState("Seated")
  62.         wait()
  63.         zeezy.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping") 
  64.     end
  65. end
  66.  
  67.  
  68. --[[ Binds ]]--
  69.  
  70. ca:BindAction("zeezyFrontflip",zeezyFrontflip,false,FrontflipKey)
  71. ca:BindAction("zeezyBackflip",zeezyBackflip,false,BackflipKey)
  72. ca:BindAction("zeezyAirjump",zeezyAirjump,false,AirjumpKey)
  73.  
  74. --[[ Load Message ]]--
  75.  
  76. print(scriptname .. " " .. ver .. " loaded successfully")
  77. print("made by Zeezy#7203")
  78.  
  79. local notifSound = Instance.new("Sound",workspace)
  80. notifSound.PlaybackSpeed = 1.5
  81. notifSound.Volume = 0.15
  82. notifSound.SoundId = "rbxassetid://170765130"
  83. notifSound.PlayOnRemove = true
  84. notifSound:Destroy()
  85. game.StarterGui:SetCore("SendNotification", {Title = "feFlip", Text = "feFlip loaded successfully!", Icon = "rbxassetid://505845268", Duration = 5, Button1 = "Okay"})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement