Advertisement
lllkkklkk

fly GUI V3

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