AbstractPoo

Untitled

Feb 17th, 2020
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.48 KB | None | 0 0
  1. local Finity = loadstring(game:HttpGet("http://finity.vip/scripts/finity_lib.lua "))()
  2. local FinityWindow = Finity.new(true, "Doomspire x, but better toggle = P")
  3. FinityWindow.ChangeToggleKey(Enum.KeyCode.P)
  4. local Doomspire = FinityWindow:Category("Doomspire x")
  5. local Values = Doomspire:Sector("Main")
  6. local Defaults = Doomspire:Sector("Defaults")
  7. IYMouse = game.Players.LocalPlayer:GetMouse()
  8.  
  9. Values:Cheat("Slider", "Speed", function(value)
  10.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(value)
  11. end, {min = 5, max = 100, suffix = "°"})
  12.  
  13. Defaults:Cheat("Button", "Reset Speed", function()
  14.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  15. end, {text = "Reset"})
  16.  
  17. Values:Cheat("Slider", "Jump Power", function(value)
  18.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = tonumber(value)
  19. end, {min = 10, max = 100, suffix = "°"})
  20.  
  21. Defaults:Cheat("Button", "Reset JumpPower", function()
  22.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  23. end, {text = "Reset"})
  24.  
  25. Values:Cheat("Slider", "Gravity", function(value)
  26.     game.Workspace.Gravity = tonumber(value)
  27. end, {min = 0, max = 300, suffix = "°"})
  28.  
  29. Defaults:Cheat("Button", "Gravity", function()
  30.     game.Workspace.Gravity = 196.2
  31. end, {text = "Reset"})
  32.  
  33. Values:Cheat("Button", "Destroy Gui", function()
  34.     game.CoreGui.FinityUI:Destroy()
  35. end, {text = "Delete"})
  36.  
  37. dfly = false
  38. FLYING = false
  39. iyflyspeed = 1
  40. vehicleflyspeed = 1
  41. function sFLY(vfly)
  42.     repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild('HumanoidRootPart') and game.Players.LocalPlayer.Character:FindFirstChild('Humanoid')
  43.     repeat wait() until IYMouse
  44.    
  45.     local T = game.Players.LocalPlayer.Character.HumanoidRootPart
  46.     local CONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  47.     local lCONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  48.     local SPEED = 0
  49.    
  50.     local function FLY()
  51.         FLYING = true
  52.         local BG = Instance.new('BodyGyro', T)
  53.         local BV = Instance.new('BodyVelocity', T)
  54.         BG.P = 9e4
  55.         BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  56.         BG.cframe = T.CFrame
  57.         BV.velocity = Vector3.new(0, 0, 0)
  58.         BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  59.         spawn(function()
  60.             repeat wait()
  61.             if not vfly then
  62.                 game.Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').PlatformStand = true
  63.             end
  64.             if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0 then
  65.                 SPEED = 50
  66.             elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0) and SPEED ~= 0 then
  67.                 SPEED = 0
  68.             end
  69.             if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 or (CONTROL.Q + CONTROL.E) ~= 0 then
  70.                 BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B + CONTROL.Q + CONTROL.E) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  71.                 lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  72.             elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and (CONTROL.Q + CONTROL.E) == 0 and SPEED ~= 0 then
  73.                 BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B + CONTROL.Q + CONTROL.E) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  74.             else
  75.                 BV.velocity = Vector3.new(0, 0, 0)
  76.             end
  77.             BG.cframe = workspace.CurrentCamera.CoordinateFrame
  78.             until not FLYING
  79.             CONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  80.             lCONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  81.             SPEED = 0
  82.             BG:destroy()
  83.             BV:destroy()
  84.             game.Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false
  85.         end)
  86.     end
  87.     IYMouse.KeyDown:connect(function(KEY)
  88.         if KEY:lower() == 'w' then
  89.             if vfly then
  90.                 CONTROL.F = vehicleflyspeed
  91.             else
  92.                 CONTROL.F = iyflyspeed
  93.             end
  94.         elseif KEY:lower() == 's' then
  95.             if vfly then
  96.                 CONTROL.B = - vehicleflyspeed
  97.             else
  98.                 CONTROL.B = - iyflyspeed
  99.             end
  100.         elseif KEY:lower() == 'a' then
  101.             if vfly then
  102.                 CONTROL.L = - vehicleflyspeed
  103.             else
  104.                 CONTROL.L = - iyflyspeed
  105.             end
  106.         elseif KEY:lower() == 'd' then
  107.             if vfly then
  108.                 CONTROL.R = vehicleflyspeed
  109.             else
  110.                 CONTROL.R = iyflyspeed
  111.             end
  112.         elseif KEY:lower() == 'e' then
  113.             if vfly then
  114.                 CONTROL.Q = vehicleflyspeed*2
  115.             else
  116.                 CONTROL.Q = iyflyspeed*2
  117.             end
  118.         elseif KEY:lower() == 'q' then
  119.             if vfly then
  120.                 CONTROL.E = -vehicleflyspeed*2
  121.             else
  122.                 CONTROL.E = -iyflyspeed*2
  123.             end
  124.         end
  125.     end)
  126.     IYMouse.KeyUp:connect(function(KEY)
  127.         if KEY:lower() == 'w' then
  128.             CONTROL.F = 0
  129.         elseif KEY:lower() == 's' then
  130.             CONTROL.B = 0
  131.         elseif KEY:lower() == 'a' then
  132.             CONTROL.L = 0
  133.         elseif KEY:lower() == 'd' then
  134.             CONTROL.R = 0
  135.         elseif KEY:lower() == 'e' then
  136.             CONTROL.Q = 0
  137.         elseif KEY:lower() == 'q' then
  138.             CONTROL.E = 0
  139.         end
  140.     end)
  141.     FLY()
  142. end
  143.  
  144. function NOFLY()
  145.     FLYING = false
  146.     game.Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false
  147. end
  148.  
  149. Values:Cheat("Checkbox", "Fly", function()
  150.     dfly = not dfly
  151.     if dfly then
  152.         sFLY()
  153.     elseif not dfly then
  154.         NOFLY()
  155.     end
  156. end)
Advertisement
Add Comment
Please, Sign In to add comment