Advertisement
SirrVindict

ForDutch

Sep 27th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.59 KB | None | 0 0
  1. -- Created By Dutch
  2. -- Published by Vindict
  3. local easyfly = Instance.new("ScreenGui")
  4. local main = Instance.new("Frame")
  5. local fly = Instance.new("TextButton")
  6. local TextLabel = Instance.new("TextLabel")
  7. local x = Instance.new("TextButton")
  8. local opengui = Instance.new("Frame")
  9. local TextButton = Instance.new("TextButton")
  10. --Properties:
  11. easyfly.Name = "easyfly"
  12. easyfly.Parent = game.CoreGui
  13.  
  14. main.Active = true
  15. main.Draggable = true
  16.  
  17. main.Name = "main"
  18. main.Parent = easyfly
  19. main.BackgroundColor3 = Color3.new(0.705882, 1, 0.0627451)
  20. main.BackgroundTransparency = 0.40000000596046
  21. main.BorderColor3 = Color3.new(0, 0, 0)
  22. main.BorderSizePixel = 4
  23. main.Position = UDim2.new(0.63161993, 0, 0.585995078, 0)
  24. main.Size = UDim2.new(0, 455, 0, 323)
  25. main.Visible = false
  26.  
  27. fly.Name = "fly"
  28. fly.Parent = main
  29. fly.BackgroundColor3 = Color3.new(1, 1, 1)
  30. fly.Position = UDim2.new(0.331868142, 0, 0.421052635, 0)
  31. fly.Size = UDim2.new(0, 152, 0, 50)
  32. fly.Font = Enum.Font.SciFi
  33. fly.Text = "Easy Fly"
  34. fly.TextColor3 = Color3.new(0, 0, 0)
  35. fly.TextScaled = true
  36. fly.TextSize = 14
  37. fly.TextWrapped = true
  38. fly.MouseButton1Click:connect(function()
  39. local humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid
  40. if humanoid.RigType == Enum.HumanoidRigType.R15 then
  41. game:GetService('Players').LocalPlayer.Character.Humanoid.Name = "Humanoida"
  42. repeat wait()
  43. until game:GetService"Players".LocalPlayer and game:GetService"Players".LocalPlayer.Character and game:GetService"Players".LocalPlayer.Character:findFirstChild("UpperTorso") and game:GetService"Players".LocalPlayer.Character:findFirstChild("Humanoida")
  44. local mouse = game:GetService"Players".LocalPlayer:GetMouse()
  45. repeat wait() until mouse
  46. local plr = game:GetService"Players".LocalPlayer
  47. local torso = plr.Character.UpperTorso
  48. local flying = true
  49. local deb = true
  50. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  51. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  52. local maxspeed = 100
  53. local speed = 0
  54. function Fly()
  55. local bg = Instance.new("BodyGyro", torso)
  56. bg.P = 9e4
  57. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  58. bg.cframe = torso.CFrame
  59. local bv = Instance.new("BodyVelocity", torso)
  60. bv.velocity = Vector3.new(0,0.1,0)
  61. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  62. repeat wait()
  63. plr.Character.Humanoida.PlatformStand = true
  64. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  65. speed = speed+.5+(speed/maxspeed)
  66. if speed > maxspeed then
  67. speed = maxspeed
  68. end
  69. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  70. speed = speed-1
  71. if speed < 0 then
  72. speed = 0
  73. end
  74. end
  75. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  76. bv.velocity = ((game:GetService("Workspace").CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game:GetService("Workspace").CurrentCamera.CoordinateFrame.p))*speed
  77. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  78. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  79. bv.velocity = ((game:GetService("Workspace").CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game:GetService("Workspace").CurrentCamera.CoordinateFrame.p))*speed
  80. else
  81. bv.velocity = Vector3.new(0,0.1,0)
  82. end
  83. bg.cframe = game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  84. until not flying
  85. ctrl = {f = 0, b = 0, l = 0, r = 0}
  86. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  87. speed = 0
  88. bg:Destroy()
  89. bv:Destroy()
  90. plr.Character.Humanoida.PlatformStand = false
  91. end
  92. mouse.KeyDown:connect(function(key)
  93. if key:lower() == "e" then
  94. if flying then flying = false
  95. else
  96. flying = true
  97. Fly()
  98. end
  99. elseif key:lower() == "w" then
  100. ctrl.f = 1
  101. elseif key:lower() == "s" then
  102. ctrl.b = -1
  103. elseif key:lower() == "a" then
  104. ctrl.l = -1
  105. elseif key:lower() == "d" then
  106. ctrl.r = 1
  107. end
  108. end)
  109. mouse.KeyUp:connect(function(key)
  110. if key:lower() == "w" then
  111. ctrl.f = 0
  112. elseif key:lower() == "s" then
  113. ctrl.b = 0
  114. elseif key:lower() == "a" then
  115. ctrl.l = 0
  116. elseif key:lower() == "d" then
  117. ctrl.r = 0
  118. end
  119. end)
  120. Fly()
  121. else
  122. repeat wait()
  123. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  124. local mouse = game.Players.LocalPlayer:GetMouse()
  125. repeat wait() until mouse
  126. local plr = game.Players.LocalPlayer
  127. local torso = plr.Character.Torso
  128. local flying = true
  129. local deb = true
  130. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  131. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  132. local maxspeed = 50
  133. local speed = 0
  134.  
  135. function Fly()
  136. local bg = Instance.new("BodyGyro", torso)
  137. bg.P = 9e4
  138. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  139. bg.cframe = torso.CFrame
  140. local bv = Instance.new("BodyVelocity", torso)
  141. bv.velocity = Vector3.new(0,0.1,0)
  142. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  143. repeat wait()
  144. plr.Character.Humanoid.PlatformStand = true
  145. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  146. speed = speed+.5+(speed/maxspeed)
  147. if speed > maxspeed then
  148. speed = maxspeed
  149. end
  150. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  151. speed = speed-1
  152. if speed < 0 then
  153. speed = 0
  154. end
  155. end
  156. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  157. 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
  158. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  159. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  160. 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
  161. else
  162. bv.velocity = Vector3.new(0,0.1,0)
  163. end
  164. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  165. until not flying
  166. ctrl = {f = 0, b = 0, l = 0, r = 0}
  167. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  168. speed = 0
  169. bg:Destroy()
  170. bv:Destroy()
  171. plr.Character.Humanoid.PlatformStand = false
  172. end
  173. mouse.KeyDown:connect(function(key)
  174. if key:lower() == "e" then
  175. if flying then flying = false
  176. else
  177. flying = true
  178. Fly()
  179. end
  180. elseif key:lower() == "w" then
  181. ctrl.f = 1
  182. elseif key:lower() == "s" then
  183. ctrl.b = -1
  184. elseif key:lower() == "a" then
  185. ctrl.l = -1
  186. elseif key:lower() == "d" then
  187. ctrl.r = 1
  188. end
  189. end)
  190. mouse.KeyUp:connect(function(key)
  191. if key:lower() == "w" then
  192. ctrl.f = 0
  193. elseif key:lower() == "s" then
  194. ctrl.b = 0
  195. elseif key:lower() == "a" then
  196. ctrl.l = 0
  197. elseif key:lower() == "d" then
  198. ctrl.r = 0
  199. end
  200. end)
  201. Fly()
  202. end
  203. end)
  204.  
  205.  
  206. TextLabel.Parent = main
  207. TextLabel.BackgroundColor3 = Color3.new(0, 1, 0.164706)
  208. TextLabel.BackgroundTransparency = 0.40000000596046
  209. TextLabel.BorderColor3 = Color3.new(0.705882, 1, 0.0627451)
  210. TextLabel.Position = UDim2.new(-0.0021978023, 0, 0, 0)
  211. TextLabel.Size = UDim2.new(0, 455, 0, 50)
  212. TextLabel.Text = "Easy Fly by Robloxmiem"
  213. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  214. TextLabel.TextScaled = true
  215. TextLabel.TextSize = 14
  216. TextLabel.TextWrapped = true
  217.  
  218. x.Name = "x"
  219. x.Parent = main
  220. x.BackgroundColor3 = Color3.new(0.705882, 1, 0.0627451)
  221. x.BackgroundTransparency = 0.40000000596046
  222. x.BorderColor3 = Color3.new(0.705882, 1, 0.0627451)
  223. x.Position = UDim2.new(-0.0021978023, 0, 0.154798761, 0)
  224. x.Size = UDim2.new(0, 54, 0, 48)
  225. x.Font = Enum.Font.SciFi
  226. x.Text = "x"
  227. x.TextColor3 = Color3.new(0.666667, 0, 0)
  228. x.TextScaled = true
  229. x.TextSize = 14
  230. x.TextWrapped = true
  231. x.MouseButton1Click:connect(function()
  232. main.visible = false
  233. opengui.Visible = true
  234. end)
  235.  
  236. opengui.Name = "opengui"
  237. opengui.Parent = easyfly
  238. opengui.BackgroundColor3 = Color3.new(1, 1, 1)
  239. opengui.Position = UDim2.new(0.434579432, 0, 0, 0)
  240. opengui.Size = UDim2.new(0, 202, 0, 49)
  241.  
  242. TextButton.Parent = opengui
  243. TextButton.BackgroundColor3 = Color3.new(0.705882, 1, 0.0627451)
  244. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  245. TextButton.Size = UDim2.new(0, 202, 0, 50)
  246. TextButton.Font = Enum.Font.SciFi
  247. TextButton.Text = "Open Gui"
  248. TextButton.TextColor3 = Color3.new(0, 0, 0)
  249. TextButton.TextScaled = true
  250. TextButton.TextSize = 14
  251. TextButton.TextWrapped = true
  252. TextButton.MouseButton1Click:connect(function()
  253. main.Visible = true
  254. opengui.Visible = false
  255. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement