younestipo1998

game.Players

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