BlastingStone

Untitled

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