Advertisement
rrixh

fly gui modded b&w

Oct 24th, 2023
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.53 KB | None | 0 0
  1. -- fly gui modded --
  2.  
  3. local main = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local up = Instance.new("TextButton")
  6. local down = Instance.new("TextButton")
  7. local onof = Instance.new("TextButton")
  8. local TextLabel = Instance.new("TextLabel")
  9. local plus = Instance.new("TextButton")
  10. local speed = Instance.new("TextLabel")
  11. local mine = Instance.new("TextButton")
  12. local closebutton = Instance.new("TextButton")
  13. local mini = Instance.new("TextButton")
  14. local mini2 = Instance.new("TextButton")
  15.  
  16. main.Name = "main"
  17. main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  18. main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19. main.ResetOnSpawn = false
  20.  
  21. Frame.Parent = main
  22. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  23. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  24. Frame.Position = UDim2.new(0.100320168, 0, 0.379746825, 0)
  25. Frame.Size = UDim2.new(0, 190, 0, 57)
  26.  
  27. up.Name = "up"
  28. up.Parent = Frame
  29. up.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. up.Size = UDim2.new(0, 44, 0, 28)
  31. up.Font = Enum.Font.SourceSans
  32. up.Text = "↑"
  33. up.TextColor3 = Color3.fromRGB(0, 0, 0)
  34. up.TextSize = 14.000
  35.  
  36. down.Name = "down"
  37. down.Parent = Frame
  38. down.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  39. down.Position = UDim2.new(0, 0, 0.491228074, 0)
  40. down.Size = UDim2.new(0, 44, 0, 28)
  41. down.Font = Enum.Font.SourceSans
  42. down.Text = "↓"
  43. down.TextColor3 = Color3.fromRGB(0, 0, 0)
  44. down.TextSize = 14.000
  45.  
  46. onof.Name = "onof"
  47. onof.Parent = Frame
  48. onof.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  49. onof.Position = UDim2.new(0.702823281, 0, 0.491228074, 0)
  50. onof.Size = UDim2.new(0, 56, 0, 28)
  51. onof.Font = Enum.Font.Michroma
  52. onof.Text = "FLY"
  53. onof.TextColor3 = Color3.fromRGB(0, 0, 0)
  54. onof.TextSize = 14.000
  55.  
  56. TextLabel.Parent = Frame
  57. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. TextLabel.Position = UDim2.new(0.469327301, 0, 0, 0)
  59. TextLabel.Size = UDim2.new(0, 100, 0, 28)
  60. TextLabel.Font = Enum.Font.Michroma
  61. TextLabel.Text = "Fly gui modded"
  62. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  63. TextLabel.TextScaled = true
  64. TextLabel.TextSize = 14.000
  65. TextLabel.TextWrapped = true
  66.  
  67. plus.Name = "plus"
  68. plus.Parent = Frame
  69. plus.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  70. plus.Position = UDim2.new(0.231578946, 0, 0, 0)
  71. plus.Size = UDim2.new(0, 45, 0, 28)
  72. plus.Font = Enum.Font.SourceSans
  73. plus.Text = "+"
  74. plus.TextColor3 = Color3.fromRGB(0, 0, 0)
  75. plus.TextScaled = true
  76. plus.TextSize = 14.000
  77. plus.TextWrapped = true
  78.  
  79. speed.Name = "speed"
  80. speed.Parent = Frame
  81. speed.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  82. speed.Position = UDim2.new(0.468421042, 0, 0.491228074, 0)
  83. speed.Size = UDim2.new(0, 44, 0, 28)
  84. speed.Font = Enum.Font.SourceSans
  85. speed.Text = "1"
  86. speed.TextColor3 = Color3.fromRGB(0, 0, 0)
  87. speed.TextScaled = true
  88. speed.TextSize = 14.000
  89. speed.TextWrapped = true
  90.  
  91. mine.Name = "mine"
  92. mine.Parent = Frame
  93. mine.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. mine.Position = UDim2.new(0.231578946, 0, 0.491228074, 0)
  95. mine.Size = UDim2.new(0, 45, 0, 29)
  96. mine.Font = Enum.Font.SourceSans
  97. mine.Text = "-"
  98. mine.TextColor3 = Color3.fromRGB(0, 0, 0)
  99. mine.TextScaled = true
  100. mine.TextSize = 14.000
  101. mine.TextWrapped = true
  102.  
  103. closebutton.Name = "Close"
  104. closebutton.Parent = main.Frame
  105. closebutton.BackgroundColor3 = Color3.fromRGB(255, 5, 5)
  106. closebutton.Font = "Michroma"
  107. closebutton.Size = UDim2.new(0, 45, 0, 28)
  108. closebutton.Text = "x"
  109. closebutton.TextSize = 30
  110. closebutton.Position =  UDim2.new(0, 0, -1, 27)
  111.  
  112. mini.Name = "minimize"
  113. mini.Parent = main.Frame
  114. mini.BackgroundColor3 = Color3.fromRGB(117, 117, 117)
  115. mini.Font = "Michroma"
  116. mini.Size = UDim2.new(0, 45, 0, 28)
  117. mini.Text = "-"
  118. mini.TextSize = 40
  119. mini.Position = UDim2.new(0, 44, -1, 27)
  120.  
  121. mini2.Name = "minimize2"
  122. mini2.Parent = main.Frame
  123. mini2.BackgroundColor3 = Color3.fromRGB(117, 117, 117)
  124. mini2.Font = "SourceSans"
  125. mini2.Size = UDim2.new(0, 45, 0, 28)
  126. mini2.Text = "+"
  127. mini2.TextSize = 40
  128. mini2.Position = UDim2.new(0, 44, -1, 57)
  129. mini2.Visible = false
  130.  
  131. speeds = 1
  132.  
  133. local speaker = game:GetService("Players").LocalPlayer
  134.  
  135. local chr = game.Players.LocalPlayer.Character
  136. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  137.  
  138. nowe = false
  139.  
  140. game:GetService("StarterGui"):SetCore("SendNotification", {
  141.     Title = "FLY GUI V3 MODDED";
  142.     Text = "lulaslollipop🍭";
  143.     Icon = "rbxthumb://type=Asset&id=5107182114&w=150&h=150"})
  144. Duration = 5;
  145.  
  146. Frame.Active = true -- main = gui
  147. Frame.Draggable = true
  148.  
  149. onof.MouseButton1Down:connect(function()
  150.  
  151.     if nowe == true then
  152.         nowe = false
  153.  
  154.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  155.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  156.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
  157.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  158.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
  159.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
  160.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
  161.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
  162.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
  163.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
  164.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
  165.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
  166.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
  167.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
  168.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  169.         speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  170.     else
  171.         nowe = true
  172.  
  173.  
  174.  
  175.         for i = 1, speeds do
  176.             spawn(function()
  177.  
  178.                 local hb = game:GetService("RunService").Heartbeat 
  179.  
  180.  
  181.                 tpwalking = true
  182.                 local chr = game.Players.LocalPlayer.Character
  183.                 local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  184.                 while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  185.                     if hum.MoveDirection.Magnitude > 0 then
  186.                         chr:TranslateBy(hum.MoveDirection)
  187.                     end
  188.                 end
  189.  
  190.             end)
  191.         end
  192.         game.Players.LocalPlayer.Character.Animate.Disabled = true
  193.         local Char = game.Players.LocalPlayer.Character
  194.         local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
  195.  
  196.         for i,v in next, Hum:GetPlayingAnimationTracks() do
  197.             v:AdjustSpeed(0)
  198.         end
  199.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  200.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  201.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
  202.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  203.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
  204.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
  205.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
  206.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
  207.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
  208.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  209.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
  210.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
  211.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
  212.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
  213.         speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  214.         speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
  215.     end
  216.  
  217.  
  218.  
  219.  
  220.     if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  221.  
  222.  
  223.  
  224.         local plr = game.Players.LocalPlayer
  225.         local torso = plr.Character.Torso
  226.         local flying = true
  227.         local deb = true
  228.         local ctrl = {f = 0, b = 0, l = 0, r = 0}
  229.         local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  230.         local maxspeed = 50
  231.         local speed = 0
  232.  
  233.  
  234.         local bg = Instance.new("BodyGyro", torso)
  235.         bg.P = 9e4
  236.         bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  237.         bg.cframe = torso.CFrame
  238.         local bv = Instance.new("BodyVelocity", torso)
  239.         bv.velocity = Vector3.new(0,0.1,0)
  240.         bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  241.         if nowe == true then
  242.             plr.Character.Humanoid.PlatformStand = true
  243.         end
  244.         while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  245.             game:GetService("RunService").RenderStepped:Wait()
  246.  
  247.             if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  248.                 speed = speed+.5+(speed/maxspeed)
  249.                 if speed > maxspeed then
  250.                     speed = maxspeed
  251.                 end
  252.             elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  253.                 speed = speed-1
  254.                 if speed < 0 then
  255.                     speed = 0
  256.                 end
  257.             end
  258.             if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  259.                 bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  260.                 lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  261.             elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  262.                 bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  263.             else
  264.                 bv.velocity = Vector3.new(0,0,0)
  265.             end
  266.             --  game.Players.LocalPlayer.Character.Animate.Disabled = true
  267.             bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  268.         end
  269.         ctrl = {f = 0, b = 0, l = 0, r = 0}
  270.         lastctrl = {f = 0, b = 0, l = 0, r = 0}
  271.         speed = 0
  272.         bg:Destroy()
  273.         bv:Destroy()
  274.         plr.Character.Humanoid.PlatformStand = false
  275.         game.Players.LocalPlayer.Character.Animate.Disabled = false
  276.         tpwalking = false
  277.  
  278.  
  279.  
  280.  
  281.     else
  282.         local plr = game.Players.LocalPlayer
  283.         local UpperTorso = plr.Character.UpperTorso
  284.         local flying = true
  285.         local deb = true
  286.         local ctrl = {f = 0, b = 0, l = 0, r = 0}
  287.         local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  288.         local maxspeed = 50
  289.         local speed = 0
  290.  
  291.  
  292.         local bg = Instance.new("BodyGyro", UpperTorso)
  293.         bg.P = 9e4
  294.         bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  295.         bg.cframe = UpperTorso.CFrame
  296.         local bv = Instance.new("BodyVelocity", UpperTorso)
  297.         bv.velocity = Vector3.new(0,0.1,0)
  298.         bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  299.         if nowe == true then
  300.             plr.Character.Humanoid.PlatformStand = true
  301.         end
  302.         while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  303.             wait()
  304.  
  305.             if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  306.                 speed = speed+.5+(speed/maxspeed)
  307.                 if speed > maxspeed then
  308.                     speed = maxspeed
  309.                 end
  310.             elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  311.                 speed = speed-1
  312.                 if speed < 0 then
  313.                     speed = 0
  314.                 end
  315.             end
  316.             if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  317.                 bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  318.                 lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  319.             elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  320.                 bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  321.             else
  322.                 bv.velocity = Vector3.new(0,0,0)
  323.             end
  324.  
  325.             bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  326.         end
  327.         ctrl = {f = 0, b = 0, l = 0, r = 0}
  328.         lastctrl = {f = 0, b = 0, l = 0, r = 0}
  329.         speed = 0
  330.         bg:Destroy()
  331.         bv:Destroy()
  332.         plr.Character.Humanoid.PlatformStand = false
  333.         game.Players.LocalPlayer.Character.Animate.Disabled = false
  334.         tpwalking = false
  335.  
  336.  
  337.  
  338.     end
  339.  
  340.  
  341.  
  342.  
  343.  
  344. end)
  345.  
  346. local tis
  347.  
  348. up.MouseButton1Down:connect(function()
  349.     tis = up.MouseEnter:connect(function()
  350.         while tis do
  351.             wait()
  352.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,1,0)
  353.         end
  354.     end)
  355. end)
  356.  
  357. up.MouseLeave:connect(function()
  358.     if tis then
  359.         tis:Disconnect()
  360.         tis = nil
  361.     end
  362. end)
  363.  
  364. local dis
  365.  
  366. down.MouseButton1Down:connect(function()
  367.     dis = down.MouseEnter:connect(function()
  368.         while dis do
  369.             wait()
  370.             game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,-1,0)
  371.         end
  372.     end)
  373. end)
  374.  
  375. down.MouseLeave:connect(function()
  376.     if dis then
  377.         dis:Disconnect()
  378.         dis = nil
  379.     end
  380. end)
  381.  
  382.  
  383. game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(char)
  384.     wait(0.7)
  385.     game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  386.     game.Players.LocalPlayer.Character.Animate.Disabled = false
  387.  
  388. end)
  389.  
  390.  
  391. plus.MouseButton1Down:connect(function()
  392.     speeds = speeds + 1
  393.     speed.Text = speeds
  394.     if nowe == true then
  395.  
  396.  
  397.         tpwalking = false
  398.         for i = 1, speeds do
  399.             spawn(function()
  400.  
  401.                 local hb = game:GetService("RunService").Heartbeat 
  402.  
  403.  
  404.                 tpwalking = true
  405.                 local chr = game.Players.LocalPlayer.Character
  406.                 local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  407.                 while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  408.                     if hum.MoveDirection.Magnitude > 0 then
  409.                         chr:TranslateBy(hum.MoveDirection)
  410.                     end
  411.                 end
  412.  
  413.             end)
  414.         end
  415.     end
  416. end)
  417. mine.MouseButton1Down:connect(function()
  418.     if speeds == 1 then
  419.         speed.Text = '-1 speed fly bruh'
  420.         wait(1)
  421.         speed.Text = speeds
  422.     else
  423.         speeds = speeds - 1
  424.         speed.Text = speeds
  425.         if nowe == true then
  426.             tpwalking = false
  427.             for i = 1, speeds do
  428.                 spawn(function()
  429.  
  430.                     local hb = game:GetService("RunService").Heartbeat 
  431.  
  432.  
  433.                     tpwalking = true
  434.                     local chr = game.Players.LocalPlayer.Character
  435.                     local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  436.                     while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  437.                         if hum.MoveDirection.Magnitude > 0 then
  438.                             chr:TranslateBy(hum.MoveDirection)
  439.                         end
  440.                     end
  441.  
  442.                 end)
  443.             end
  444.         end
  445.     end
  446. end)
  447.  
  448. closebutton.MouseButton1Click:Connect(function()
  449.     main:Destroy()
  450. end)
  451.  
  452. mini.MouseButton1Click:Connect(function()
  453.     up.Visible = false
  454.     down.Visible = false
  455.     onof.Visible = false
  456.     plus.Visible = false
  457.     speed.Visible = false
  458.     mine.Visible = false
  459.     mini.Visible = false
  460.     mini2.Visible = true
  461.     main.Frame.BackgroundTransparency = 1
  462.     closebutton.Position =  UDim2.new(0, 0, -1, 57)
  463. end)
  464.  
  465. mini2.MouseButton1Click:Connect(function()
  466.     up.Visible = true
  467.     down.Visible = true
  468.     onof.Visible = true
  469.     plus.Visible = true
  470.     speed.Visible = true
  471.     mine.Visible = true
  472.     mini.Visible = true
  473.     mini2.Visible = false
  474.     main.Frame.BackgroundTransparency = 0
  475.     closebutton.Position =  UDim2.new(0, 0, -1, 27)
  476. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement