FreeRobloxScripts1

Fly Gui V2 Remaked By Haxker_6666666

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