Advertisement
ChaydsScriptsBRO

Fly GUI (Works with EVERY Game)

Dec 20th, 2022 (edited)
14,218
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.04 KB | None | 1 0
  1. -- OP Fly Script
  2.  
  3. -- Talk To Me: Super Suzzy Guzzlord Supreme! #8449
  4.  
  5. -- Keybinds : X To Fly Or press the button
  6.  
  7. -- Instances:
  8.  
  9. local ScreenGui = Instance.new("ScreenGui")
  10. local Frame = Instance.new("Frame")
  11. local TextLabel = Instance.new("TextLabel")
  12. local TextLabel_2 = Instance.new("TextLabel")
  13. local TextButton = Instance.new("TextButton")
  14.  
  15. --Properties:
  16.  
  17. ScreenGui.Parent = game.CoreGui
  18.  
  19. Frame.Parent = ScreenGui
  20. Frame.BackgroundColor3 = Color3.fromRGB(24, 255, 51)
  21. Frame.BorderColor3 = Color3.fromRGB(255, 0, 4)
  22. Frame.BorderSizePixel = 15
  23. Frame.Position = UDim2.new(0.0575905927, 0, 0.653887033, 0)
  24. Frame.Size = UDim2.new(0, 295, 0, 152)
  25. Frame.Active = true
  26. Frame.Draggable = true
  27.  
  28. TextLabel.Parent = Frame
  29. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. TextLabel.BackgroundTransparency = 1.000
  31. TextLabel.BorderColor3 = Color3.fromRGB(255, 255, 255)
  32. TextLabel.BorderSizePixel = 0
  33. TextLabel.Size = UDim2.new(0, 295, 0, 63)
  34. TextLabel.Font = Enum.Font.SciFi
  35. TextLabel.Text = "OP FLY SCRIPT"
  36. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  37. TextLabel.TextScaled = true
  38. TextLabel.TextSize = 14.000
  39. TextLabel.TextStrokeTransparency = 0.000
  40. TextLabel.TextWrapped = true
  41.  
  42. TextLabel_2.Parent = Frame
  43. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  44. TextLabel_2.BackgroundTransparency = 1.000
  45. TextLabel_2.BorderColor3 = Color3.fromRGB(255, 255, 255)
  46. TextLabel_2.BorderSizePixel = 0
  47. TextLabel_2.Position = UDim2.new(0, 0, 0.342105269, 0)
  48. TextLabel_2.Size = UDim2.new(0, 295, 0, 18)
  49. TextLabel_2.Font = Enum.Font.SciFi
  50. TextLabel_2.Text = "(May Not Work On All Games)"
  51. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  52. TextLabel_2.TextScaled = true
  53. TextLabel_2.TextSize = 14.000
  54. TextLabel_2.TextStrokeTransparency = 0.000
  55. TextLabel_2.TextWrapped = true
  56.  
  57. TextButton.Parent = Frame
  58. TextButton.BackgroundColor3 = Color3.fromRGB(8, 0, 255)
  59. TextButton.Position = UDim2.new(0.159322038, 0, 0.552631557, 0)
  60. TextButton.Size = UDim2.new(0, 200, 0, 50)
  61. TextButton.Font = Enum.Font.SciFi
  62. TextButton.Text = "Click Me To Fly"
  63. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  64. TextButton.TextScaled = true
  65. TextButton.TextSize = 14.000
  66. TextButton.TextStrokeTransparency = 0.000
  67. TextButton.TextWrapped = true
  68. TextButton.MouseButton1Down:connect(function()
  69. local plr = game.Players.LocalPlayer
  70. local mouse = plr:GetMouse()
  71.  
  72. localplayer = plr
  73.  
  74. if workspace:FindFirstChild("Core") then
  75. workspace.Core:Destroy()
  76. end
  77.  
  78. local Core = Instance.new("Part")
  79. Core.Name = "Core"
  80. Core.Size = Vector3.new(0.05, 0.05, 0.05)
  81.  
  82. spawn(function()
  83. Core.Parent = workspace
  84. local Weld = Instance.new("Weld", Core)
  85. Weld.Part0 = Core
  86. Weld.Part1 = localplayer.Character.LowerTorso
  87. Weld.C0 = CFrame.new(0, 0, 0)
  88. end)
  89.  
  90. workspace:WaitForChild("Core")
  91.  
  92. local torso = workspace.Core
  93. flying = true
  94. local speed=10
  95. local keys={a=false,d=false,w=false,s=false}
  96. local e1
  97. local e2
  98. local function start()
  99. local pos = Instance.new("BodyPosition",torso)
  100. local gyro = Instance.new("BodyGyro",torso)
  101. pos.Name="EPIXPOS"
  102. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  103. pos.position = torso.Position
  104. gyro.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  105. gyro.cframe = torso.CFrame
  106. repeat
  107. wait()
  108. localplayer.Character.Humanoid.PlatformStand=true
  109. local new=gyro.cframe - gyro.cframe.p + pos.position
  110. if not keys.w and not keys.s and not keys.a and not keys.d then
  111. speed=5
  112. end
  113. if keys.w then
  114. new = new + workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  115. speed=speed+0
  116. end
  117. if keys.s then
  118. new = new - workspace.CurrentCamera.CoordinateFrame.lookVector * speed
  119. speed=speed+0
  120. end
  121. if keys.d then
  122. new = new * CFrame.new(speed,0,0)
  123. speed=speed+0
  124. end
  125. if keys.a then
  126. new = new * CFrame.new(-speed,0,0)
  127. speed=speed+0
  128. end
  129. if speed>10 then
  130. speed=5
  131. end
  132. pos.position=new.p
  133. if keys.w then
  134. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(-math.rad(speed*0),0,0)
  135. elseif keys.s then
  136. gyro.cframe = workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(math.rad(speed*0),0,0)
  137. else
  138. gyro.cframe = workspace.CurrentCamera.CoordinateFrame
  139. end
  140. until flying == false
  141. if gyro then gyro:Destroy() end
  142. if pos then pos:Destroy() end
  143. flying=false
  144. localplayer.Character.Humanoid.PlatformStand=false
  145. speed=10
  146. end
  147. e1=mouse.KeyDown:connect(function(key)
  148. if not torso or not torso.Parent then flying=false e1:disconnect() e2:disconnect() return end
  149. if key=="w" then
  150. keys.w=true
  151. elseif key=="s" then
  152. keys.s=true
  153. elseif key=="a" then
  154. keys.a=true
  155. elseif key=="d" then
  156. keys.d=true
  157. elseif key=="x" then
  158. if flying==true then
  159. flying=false
  160. else
  161. flying=true
  162. start()
  163. end
  164. end
  165. end)
  166. e2=mouse.KeyUp:connect(function(key)
  167. if key=="w" then
  168. keys.w=false
  169. elseif key=="s" then
  170. keys.s=false
  171. elseif key=="a" then
  172. keys.a=false
  173. elseif key=="d" then
  174. keys.d=false
  175. end
  176. end)
  177. start()
  178. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement