LolPenguinOwO

bfgdjo

Oct 14th, 2022
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.71 KB | None | 0 0
  1. local FlyGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local TextButton = Instance.new("TextButton")
  4. local TextLabel = Instance.new("TextLabel")
  5.  
  6. --Properties:
  7.  
  8. FlyGui.Name = "FlyGui"
  9. FlyGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  10.  
  11. Frame.Parent = FlyGui
  12. Frame.BackgroundColor3 = Color3.fromRGB(80, 80, 80)
  13. Frame.BorderSizePixel = 0
  14. Frame.Position = UDim2.new(0.0685602352, 0, 0.168769717, 0)
  15. Frame.Size = UDim2.new(0.264544547, 0, 0.100000024, 0)
  16.  
  17. TextButton.Parent = Frame
  18. TextButton.BackgroundColor3 = Color3.fromRGB(66, 66, 66)
  19. TextButton.BorderSizePixel = 0
  20. TextButton.Position = UDim2.new(0.06324628, 0, 0.400667697, 0)
  21. TextButton.Size = UDim2.new(0.871157169, 0, 0.495614201, 0)
  22. TextButton.Font = Enum.Font.ArialBold
  23. TextButton.Text = "Fly"
  24. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  25. TextButton.TextScaled = true
  26. TextButton.TextSize = 14.000
  27. TextButton.TextStrokeTransparency = 0.000
  28. TextButton.TextWrapped = true
  29.  
  30. TextLabel.Parent = Frame
  31. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  32. TextLabel.Size = UDim2.new(0, 86, 0, 24)
  33. TextLabel.Font = Enum.Font.Oswald
  34. TextLabel.Text = "Made by 7alexv7"
  35. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  36. TextLabel.TextScaled = true
  37. TextLabel.TextSize = 14.000
  38. TextLabel.TextWrapped = true
  39.  
  40. -- Scripts:
  41.  
  42. local function NQWSTGE_fake_script() -- Frame.Fly
  43. local script = Instance.new('LocalScript', Frame)
  44.  
  45. local plr = script.Parent.Parent.Parent.Parent
  46. repeat wait() until plr and plr.Character and plr.Character:findFirstChild("HumanoidRootPart") and plr.Character:findFirstChild("Humanoid")
  47. local mouse = game.Players.LocalPlayer:GetMouse()
  48. repeat wait() until mouse
  49.  
  50. local torso = plr.Character.HumanoidRootPart
  51. local flying = false
  52. local deb = true
  53. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  54. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  55. local maxspeed = 1000
  56. local speed = 50
  57. function Fly()
  58. local bg = Instance.new("BodyGyro", torso)
  59. bg.P = 9e4
  60. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  61. bg.cframe = torso.CFrame
  62. local bv = Instance.new("BodyVelocity", torso)
  63. bv.velocity = Vector3.new(0,0.1,0)
  64. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  65. repeat wait()
  66. plr.Character.Humanoid.PlatformStand = true
  67. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  68. speed = speed+.5+(speed/maxspeed)
  69. if speed > maxspeed then
  70. speed = maxspeed
  71. end
  72. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  73. speed = speed-1
  74. if speed < 0 then
  75. speed = 0
  76. else
  77. speed = 50
  78. end
  79. end
  80. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  81. 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
  82. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  83. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  84. 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
  85. else
  86. bv.velocity = Vector3.new(0,0.1,0)
  87. end
  88. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  89. until not flying
  90. ctrl = {f = 0, b = 0, l = 0, r = 0}
  91. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  92.  
  93. bg:Destroy()
  94. bv:Destroy()
  95. plr.Character.Humanoid.PlatformStand = false
  96. speed = 50
  97. end
  98.  
  99. mouse.KeyDown:connect(function(key)
  100. if key:lower() == "e" then
  101. if flying then flying = false
  102. speed = 50
  103. else
  104. flying = true
  105. Fly()
  106.  
  107. end
  108. elseif key:lower() == "w" then
  109. ctrl.f = 1
  110. elseif key:lower() == "s" then
  111. ctrl.b = -1
  112. elseif key:lower() == "a" then
  113. ctrl.l = -1
  114. elseif key:lower() == "d" then
  115. ctrl.r = 1
  116. end
  117. end)
  118. mouse.KeyUp:connect(function(key)
  119. if key:lower() == "w" then
  120. ctrl.f = 0
  121. elseif key:lower() == "s" then
  122. ctrl.b = 0
  123. elseif key:lower() == "a" then
  124. ctrl.l = 0
  125. elseif key:lower() == "d" then
  126. ctrl.r = 0
  127. end
  128. end)
  129.  
  130. plr.Character.Humanoid.StateChanged:Connect(function(o,n)
  131. if n == Enum.HumanoidStateType.Running then
  132. ctrl.f = 1
  133. else
  134. ctrl.f = 0
  135. end
  136.  
  137. end)
  138. script.Parent.TextButton.MouseButton1Click:Connect(function()
  139. if flying then
  140. flying = false
  141. speed = 50
  142. else
  143. flying = true
  144. Fly()
  145. end
  146. end)
  147.  
  148. end
  149. coroutine.wrap(NQWSTGE_fake_script)()
  150. local function RAQA_fake_script() -- Frame.Buttons
  151. local script = Instance.new('LocalScript', Frame)
  152.  
  153. local Trigger = script.Parent.MiniTrext
  154. local IsMini = false
  155. function CreateTween(Instance,Style,Direction,Time,table,RepeatCount,CanRepeat,Delay)
  156. local ts = game:GetService("TweenService")
  157. local TweenInfo = TweenInfo.new(Time,Style,Direction,RepeatCount,CanRepeat,Delay)
  158. local Tween = ts:Create(Instance,TweenInfo,table)
  159. repeat wait() until Tween ~= nil
  160. return Tween
  161.  
  162. end
  163. Trigger.MouseButton1Click:Connect(function()
  164. if IsMini then
  165. CreateTween(script.Parent,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0.5,{Size = UDim2.new(0.265, 0,0.1, 0)},0,false,0.1):Play()
  166. IsMini = false
  167. Trigger.Text = "-"
  168. else
  169. CreateTween(script.Parent,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0.5,{Size = UDim2.new(0.265, 0,0.042, 0)},0,false,0.1):Play()
  170. IsMini = true
  171. Trigger.Text = "+"
  172. end
  173. end)
  174. script.Parent.Delete.MouseButton1Click:Connect(function()
  175. script.Parent.Parent:Destroy()
  176. end)
  177. end
  178. coroutine.wrap(RAQA_fake_script)()
  179. local function TKVUMP_fake_script() -- Frame.Drag Gui
  180. local script = Instance.new('LocalScript', Frame)
  181.  
  182. local UserInputService = game:GetService("UserInputService")
  183.  
  184. local gui = script.Parent
  185.  
  186. local dragging
  187. local dragInput
  188. local dragStart
  189. local startPos
  190.  
  191. local function update(input)
  192. local delta = input.Position - dragStart
  193. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  194. end
  195.  
  196. gui.InputBegan:Connect(function(input)
  197. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  198. dragging = true
  199. dragStart = input.Position
  200. startPos = gui.Position
  201.  
  202. input.Changed:Connect(function()
  203. if input.UserInputState == Enum.UserInputState.End then
  204. dragging = false
  205. end
  206. end)
  207. end
  208. end)
  209.  
  210. gui.InputChanged:Connect(function(input)
  211. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  212. dragInput = input
  213. end
  214. end)
  215.  
  216. UserInputService.InputChanged:Connect(function(input)
  217. if input == dragInput and dragging then
  218. update(input)
  219. end
  220. end)
  221. end
  222. coroutine.wrap(TKVUMP_fake_script)()
Add Comment
Please, Sign In to add comment