Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1.  
  2. spawn(function()
  3. local message = Instance.new("Message",workspace)
  4. message.Text = "Loaded press z to execute inviseble , press x to respawn)"
  5. wait(0.5)
  6. message:Destroy()
  7. end)
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. local mouse = game.Players.LocalPlayer:GetMouse()
  17.  
  18. local groot = nil
  19.  
  20. mouse.KeyDown:connect(function(k)
  21.  
  22. if k == "z" then
  23.  
  24.  
  25.  
  26. spawn(function()
  27. local message = Instance.new("Message",workspace)
  28. message.Text = "Fe Invisible Fling By Diemiers#4209 Loaded (wait 11 seconds to load)"
  29. wait(11)
  30. message:Destroy()
  31. end)
  32.  
  33.  
  34. local ch = game.Players.LocalPlayer.Character
  35. local prt=Instance.new("Model", workspace)
  36. local z1 = Instance.new("Part", prt)
  37. z1.Name="Torso"
  38. z1.CanCollide = false
  39. z1.Anchored = true
  40. local z2 =Instance.new("Part", prt)
  41. z2.Name="Head"
  42. z2.Anchored = true
  43. z2.CanCollide = false
  44. local z3 =Instance.new("Humanoid", prt)
  45. z3.Name="Humanoid"
  46. z1.Position = Vector3.new(0,9999,0)
  47. z2.Position = Vector3.new(0,9991,0)
  48. game.Players.LocalPlayer.Character=prt
  49. wait(5)
  50. game.Players.LocalPlayer.Character=ch
  51. wait(6)
  52.  
  53.  
  54. local plr = game.Players.LocalPlayer
  55. mouse = plr:GetMouse()
  56.  
  57. local Hum = Instance.new("Humanoid")
  58. Hum.Parent = game.Players.LocalPlayer.Character
  59.  
  60.  
  61. local root = game.Players.LocalPlayer.Character.HumanoidRootPart
  62.  
  63.  
  64. for i,v in pairs(plr.Character:GetChildren()) do
  65.  
  66. if v ~= root and v.Name ~= "Humanoid" then
  67.  
  68. v:Destroy()
  69.  
  70. end
  71.  
  72.  
  73. end
  74.  
  75. workspace.CurrentCamera.CameraSubject = root
  76.  
  77. local se = Instance.new("SelectionBox",root)
  78. se.Adornee = root
  79.  
  80.  
  81. game:GetService('RunService').Stepped:connect(function()
  82. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  83. end)
  84. game:GetService('RunService').RenderStepped:connect(function()
  85. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  86. end)
  87.  
  88.  
  89. power = 999999 -- change this to make it more or less powerful
  90.  
  91. power = power*10
  92.  
  93. ---
  94. wait(.1)
  95. local bambam = Instance.new("BodyThrust")
  96. bambam.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  97. bambam.Force = Vector3.new(power,0,power)
  98. bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  99.  
  100.  
  101.  
  102.  
  103.  
  104. local plr = game.Players.LocalPlayer
  105. local torso = root
  106. local flying = true
  107. local deb = true
  108. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  109. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  110. local maxspeed = 120
  111. local speed = 15
  112.  
  113.  
  114. ---local bambam = Instance.new("BodyThrust")
  115. ---bambam.Parent = torso
  116. --bambam.Force = Vector3.new(9999999,0,9999999)
  117. --bambam.Location = torso.Position
  118.  
  119.  
  120. ---
  121. groot = root
  122.  
  123. function Fly()
  124. local bg = Instance.new("BodyGyro", torso)
  125. bg.P = 9e4
  126. bg.maxTorque = Vector3.new(0, 0, 0)
  127. bg.cframe = torso.CFrame
  128. local bv = Instance.new("BodyVelocity", torso)
  129. bv.velocity = Vector3.new(0,0,0)
  130. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  131. repeat wait()
  132.  
  133. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  134. speed = speed+.2
  135. if speed > maxspeed then
  136. speed = maxspeed
  137. end
  138. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  139. speed = speed-1
  140. if speed < 0 then
  141. speed = 0
  142. end
  143. end
  144. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  145. 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
  146. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  147. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  148. 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
  149. else
  150. bv.velocity = Vector3.new(0,0.1,0)
  151. end
  152.  
  153. until not flying
  154. ctrl = {f = 0, b = 0, l = 0, r = 0}
  155. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  156. speed = 0
  157. bg:Destroy()
  158. bv:Destroy()
  159.  
  160. end
  161. mouse.KeyDown:connect(function(key)
  162. if key:lower() == "e" then
  163. if flying then flying = false
  164. else
  165. flying = true
  166. Fly()
  167. end
  168. elseif key:lower() == "w" then
  169. ctrl.f = 1
  170. elseif key:lower() == "s" then
  171. ctrl.b = -1
  172. elseif key:lower() == "a" then
  173. ctrl.l = -1
  174. elseif key:lower() == "d" then
  175. ctrl.r = 1
  176. end
  177. end)
  178. mouse.KeyUp:connect(function(key)
  179. if key:lower() == "w" then
  180. ctrl.f = 0
  181. elseif key:lower() == "s" then
  182. ctrl.b = 0
  183. elseif key:lower() == "a" then
  184. ctrl.l = 0
  185. elseif key:lower() == "d" then
  186. ctrl.r = 0
  187. elseif key:lower() == "r" then
  188.  
  189. end
  190. end)
  191. Fly()
  192.  
  193.  
  194.  
  195. elseif k == "x" then
  196.  
  197.  
  198. spawn(function()
  199. local message = Instance.new("Message",workspace)
  200. message.Text = "Respawning dont spam"
  201. wait(1)
  202. message:Destroy()
  203. end)
  204.  
  205. local saved = groot.Position
  206.  
  207. local ch = game.Players.LocalPlayer.Character
  208. local prt=Instance.new("Model", workspace)
  209. local z1 = Instance.new("Part", prt)
  210. z1.Name="Torso"
  211. z1.CanCollide = false
  212. z1.Anchored = true
  213. local z2 =Instance.new("Part", prt)
  214. z2.Name="Head"
  215. z2.Anchored = true
  216. z2.CanCollide = false
  217. local z3 =Instance.new("Humanoid", prt)
  218. z3.Name="Humanoid"
  219. z1.Position = Vector3.new(0,9999,0)
  220. z2.Position = Vector3.new(0,9991,0)
  221. game.Players.LocalPlayer.Character=prt
  222. wait(5)
  223. game.Players.LocalPlayer.Character=ch
  224. local poop = nil
  225. repeat wait() poop = game.Players.LocalPlayer.Character:FindFirstChild("Head") until poop ~= nil
  226. wait(1)
  227. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(saved)
  228.  
  229. end
  230.  
  231.  
  232. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement