Advertisement
B1239999

Vlieg Script | B123

Dec 19th, 2022 (edited)
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.35 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://pastebin.com/raw/4bkx1mLs"))()
  2. local Flyspeed = 1
  3. local Players = game:GetService("Players")
  4.  
  5. function NOFLY()
  6. FLYING = false
  7. Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false
  8. end
  9.  
  10. local w1 = library:CreateWindow("B123's Vlieg Menu")
  11. w1:Slider("Snelheid", {
  12. min = 1,
  13. max = 50,
  14. flag = 'fs'
  15. }, function(v)
  16. Flyspeed = v;
  17. end)
  18.  
  19. w1:Button("Vliegen", function()
  20. local savedpos = Players.LocalPlayer.Character.HumanoidRootPart.Position
  21. spawn(function()
  22. game.StarterGui:SetCore("SendNotification", {
  23. Title = "Laden...";
  24. Text = "1%";
  25. Icon = "";
  26. Duration = 3;
  27. })
  28. end)
  29.  
  30. local ch = game.Players.LocalPlayer.Character
  31. local prt = Instance.new("Model", workspace)
  32. local z1 = Instance.new("Part", prt)
  33. z1.Name = "Torso"
  34. z1.CanCollide = false
  35. z1.Anchored = true
  36. local z2 = Instance.new("Part", prt)
  37. z2.Name = "Head"
  38. z2.Anchored = true
  39. z2.CanCollide = false
  40. local z3 = Instance.new("Humanoid", prt)
  41. z3.Name = "Humanoid"
  42. z1.Position = Vector3.new(0, 9999, 0)
  43. z2.Position = Vector3.new(0, 9991, 0)
  44. game.Players.LocalPlayer.Character = prt
  45. wait(5)
  46. spawn(function()
  47. game.StarterGui:SetCore("SendNotification", {
  48. Title = "Laden...";
  49. Text = "50%";
  50. Icon = "";
  51. Duration = 4;
  52. })
  53. end)
  54. game.Players.LocalPlayer.Character = ch
  55. wait(6)
  56. spawn(function()
  57. game.StarterGui:SetCore("SendNotification", {
  58. Title = "Klaar!";
  59. Text = "100%";
  60. Icon = "";
  61. Duration = 5;
  62. })
  63. end)
  64.  
  65. local plr = game.Players.LocalPlayer
  66. mouse = plr:GetMouse()
  67.  
  68. local Hum = Instance.new("Humanoid")
  69. Hum.Parent = game.Players.LocalPlayer.Character
  70.  
  71. local root = game.Players.LocalPlayer.Character.HumanoidRootPart
  72.  
  73. for i, v in pairs(plr.Character:GetChildren()) do
  74. if v ~= root and v.Name ~= "Humanoid" then
  75. v:Destroy()
  76. end
  77. end
  78.  
  79. workspace.CurrentCamera.CameraSubject = root
  80.  
  81. local se = Instance.new("SelectionBox", root)
  82. se.Adornee = root
  83.  
  84. game:GetService("RunService").Stepped:connect(
  85. function()
  86. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  87. end
  88. )
  89. game:GetService("RunService").RenderStepped:connect(
  90. function()
  91. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  92. end
  93. )
  94.  
  95. power = 999999 -- change this to make it more or less powerful
  96.  
  97. power = power * 10
  98.  
  99. ---
  100. wait(.1)
  101. local bambam = Instance.new("BodyThrust")
  102. bambam.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  103. bambam.Force = Vector3.new(power, 0, power)
  104. bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  105.  
  106. local plr = game.Players.LocalPlayer
  107. local torso = root
  108. local flying = true
  109. local deb = true
  110. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  111. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  112. local maxspeed = 120
  113. local speed = 15
  114.  
  115. groot = root
  116.  
  117. local Players = game:GetService("Players")
  118. local Mouse = Players.LocalPlayer:GetMouse()
  119.  
  120. function sFLY()
  121. local T = Players.LocalPlayer.Character.HumanoidRootPart
  122. local CONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  123. local lCONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  124. local SPEED = 0
  125.  
  126. function FLY()
  127. FLYING = true
  128. local BG = Instance.new('BodyGyro', T)
  129. local BV = Instance.new('BodyVelocity', T)
  130. BG.P = 9e4
  131. BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  132. BG.cframe = T.CFrame
  133. BV.velocity = Vector3.new(0, 0, 0)
  134. BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  135. spawn(function()
  136. repeat wait()
  137. Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').PlatformStand = true
  138. if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0 then
  139. SPEED = 50
  140. elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0) and SPEED ~= 0 then
  141. SPEED = 0
  142. end
  143. if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 or (CONTROL.Q + CONTROL.E) ~= 0 then
  144. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B + CONTROL.Q + CONTROL.E) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  145. lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  146. elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and (CONTROL.Q + CONTROL.E) == 0 and SPEED ~= 0 then
  147. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B + CONTROL.Q + CONTROL.E) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  148. else
  149. BV.velocity = Vector3.new(0, 0, 0)
  150. end
  151. BG.cframe = workspace.CurrentCamera.CoordinateFrame
  152. until not FLYING
  153. CONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  154. lCONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0}
  155. SPEED = 0
  156. BG:destroy()
  157. BV:destroy()
  158. Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false
  159. end)
  160. end
  161.  
  162. Mouse.KeyDown:connect(function(KEY)
  163. if KEY:lower() == 'w' then
  164. CONTROL.F = Flyspeed
  165. elseif KEY:lower() == 's' then
  166. CONTROL.B = - Flyspeed
  167. elseif KEY:lower() == 'a' then
  168. CONTROL.L = - Flyspeed
  169. elseif KEY:lower() == 'd' then
  170. CONTROL.R = Flyspeed
  171. elseif KEY:lower() == 'e' then
  172. CONTROL.Q = Flyspeed*2
  173. elseif KEY:lower() == 'q' then
  174. CONTROL.E = -Flyspeed*2
  175. end
  176. end)
  177. Mouse.KeyUp:connect(function(KEY)
  178. if KEY:lower() == 'w' then
  179. CONTROL.F = 0
  180. elseif KEY:lower() == 's' then
  181. CONTROL.B = 0
  182. elseif KEY:lower() == 'a' then
  183. CONTROL.L = 0
  184. elseif KEY:lower() == 'd' then
  185. CONTROL.R = 0
  186. elseif KEY:lower() == 'e' then
  187. CONTROL.Q = 0
  188. elseif KEY:lower() == 'q' then
  189. CONTROL.E = 0
  190. end
  191. end)
  192. FLY()
  193. end
  194.  
  195. sFLY()
  196. wait()
  197. groot.CFrame = CFrame.new(savedpos)
  198. end)
  199.  
  200. w1:Button("Stoppen", function()
  201. spawn(function()
  202. game.StarterGui:SetCore("SendNotification", {
  203. Title = "Respawnen";
  204. Text = "Laden...";
  205. Icon = "";
  206. Duration = 10;
  207. })
  208. end)
  209.  
  210. local saved = Players.LocalPlayer.Character.HumanoidRootPart.Position
  211.  
  212. local ch = game.Players.LocalPlayer.Character
  213. local prt = Instance.new("Model", workspace)
  214. local z1 = Instance.new("Part", prt)
  215. z1.Name = "Torso"
  216. z1.CanCollide = false
  217. z1.Anchored = true
  218. local z2 = Instance.new("Part", prt)
  219. z2.Name = "Head"
  220. z2.Anchored = true
  221. z2.CanCollide = false
  222. local z3 = Instance.new("Humanoid", prt)
  223. z3.Name = "Humanoid"
  224. z1.Position = Vector3.new(0, 9999, 0)
  225. z2.Position = Vector3.new(0, 9991, 0)
  226. game.Players.LocalPlayer.Character = prt
  227. wait(5)
  228. game.Players.LocalPlayer.Character = ch
  229. local poop = nil
  230. repeat
  231. wait()
  232. poop = game.Players.LocalPlayer.Character:FindFirstChild("Head")
  233. until poop ~= nil
  234. NOFLY()
  235. wait(1)
  236. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(saved)
  237. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement