AugusTH

Fly v2 By Augus X (Raw)

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