Advertisement
Guest User

thanos script

a guest
May 6th, 2019
18,294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.79 KB | None | 0 0
  1. debounce = false
  2. Clock = {}
  3. local Sky = Instance.new("Sky",game.Lighting)
  4. Sky.CelestialBodiesShown = false
  5. Sky.SkyboxBk = "http://www.roblox.com/asset/?id=159454299"
  6. Sky.SkyboxDn = "http://www.roblox.com/asset/?id=159454296"
  7. Sky.SkyboxFt = "http://www.roblox.com/asset/?id=159454293"
  8. Sky.SkyboxLf = "http://www.roblox.com/asset/?id=159454286"
  9. Sky.SkyboxRt = "http://www.roblox.com/asset/?id=159454300"
  10. Sky.SkyboxUp = "http://www.roblox.com/asset/?id=159454288"
  11. function thrust()
  12. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  13. if v:IsA("BasePart") then
  14. v.Velocity = Vector3.new(0,0,0)
  15. v.RotVelocity = Vector3.new(0,0,0)
  16. end
  17. for _,q in pairs(v:GetChildren()) do
  18. if q:IsA("BasePart") then
  19. q.Velocity = Vector3.new(0,0,0)
  20. q.RotVelocity = Vector3.new(0,0,0)
  21. end
  22. end
  23. end
  24. end
  25. Position = nil
  26. Origin = nil
  27. fly = ""
  28. Die = false
  29. game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
  30. if Die == false then
  31. if key == "g" then --Power Stone
  32. if debounce == false then
  33. if game.Players.LocalPlayer:GetMouse().Target.Anchored == false then
  34. debounce = true
  35. local Model = Instance.new("Model",workspace)
  36. Model.Name = ""
  37. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  38. if v:IsA("BasePart") or v:IsA("Accessory") or v:IsA("Humanoid") or v:IsA("CharacterMesh") or v:IsA("Pants") or v:IsA("Shirt") then
  39. local Clone = v:Clone()
  40. Clone.Parent = Model
  41. if Clone:IsA("BasePart") then
  42. Clone.Anchored = true
  43. Clone:BreakJoints()
  44. end
  45. for _,r in pairs(Clone:GetChildren()) do
  46. if r:IsA("BasePart") then
  47. r.Anchored = true
  48. r:BreakJoints()
  49. end
  50. end
  51. end
  52. end
  53. if Model:FindFirstChild("Right Arm") ~= nil then
  54. Model["Right Arm"].CFrame = CFrame.new(Model["Right Arm"].Position + Model.Head.CFrame.upVector * 0.5 + Model.Head.CFrame.lookVector * 0.5,game.Players.LocalPlayer:GetMouse().Target.Position)*CFrame.fromOrientation(math.rad(90),math.rad(0),math.rad(0))
  55. end
  56. local Sound = Instance.new("Sound",workspace)
  57. game.Debris:AddItem(Sound,2)
  58. Sound.Playing = true
  59. Sound.SoundId = "rbxassetid://1146693387"
  60. Sound.Volume = 10
  61. local Beam = Instance.new("Part",workspace)
  62. Beam.Anchored = true
  63. Beam.CanCollide = false
  64. Beam.BrickColor = BrickColor.new("Royal purple")
  65. Beam.Material = "Neon"
  66. game.Workspace.Camera.CameraSubject = Model:FindFirstChild("Head")
  67. Position = game.Players.LocalPlayer:GetMouse().Target.Position
  68. local Velo = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character.Head)
  69. Origin = game.Players.LocalPlayer.Character.PrimaryPart.CFrame
  70. Velo.MaxForce = Vector3.new(9e9,9e9,9e9)
  71. Velo.Velocity = Vector3.new(0,100000,100000)
  72. local kaboom = Instance.new("Explosion",workspace)
  73. kaboom.BlastPressure = 0
  74. kaboom.BlastRadius = 0
  75. kaboom.DestroyJointRadiusPercent = 0
  76. kaboom.Position = game.Players.LocalPlayer:GetMouse().Target.Position
  77. if Model:FindFirstChild("Right Arm") ~= nil then
  78. local Pos = (Model["Right Arm"].Position - game.Players.LocalPlayer:GetMouse().Target.Position).magnitude
  79. Beam.CFrame = CFrame.new(Model["Right Arm"].Position - Model["Right Arm"].CFrame.upVector * Pos/2,game.Players.LocalPlayer:GetMouse().Target.Position)
  80. Beam.Size = Vector3.new(1,1,Pos)
  81. game.Debris:AddItem(Beam,0.2)
  82. end
  83. debounce = false
  84. wait(0.3)
  85. Velo:Destroy()
  86. Position = nil
  87. Model:Destroy()
  88. game.Workspace.Camera.CameraSubject = game.Players.LocalPlayer.Character
  89. for i=1,50 do
  90. thrust()
  91. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(Origin)
  92. wait()
  93. end
  94. end
  95. end
  96. elseif key == "y" then --Space Stone
  97. if debounce == false then
  98. debounce = true
  99. local Model = Instance.new("Model",workspace)
  100. Model.Name = ""
  101. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  102. if v:IsA("BasePart") or v:IsA("Accessory") or v:IsA("Humanoid") or v:IsA("CharacterMesh") or v:IsA("Pants") or v:IsA("Shirt") then
  103. local Clone = v:Clone()
  104. Clone.Parent = Model
  105. if Clone:IsA("BasePart") then
  106. Clone.Anchored = true
  107. Clone:BreakJoints()
  108. end
  109. for _,r in pairs(Clone:GetChildren()) do
  110. if r:IsA("BasePart") then
  111. r.Anchored = true
  112. r:BreakJoints()
  113. end
  114. end
  115. end
  116. end
  117. game.Workspace.Camera.CameraSubject = Model:FindFirstChild("Head")
  118. game.Players.LocalPlayer.Character:MoveTo(game.Players.LocalPlayer:GetMouse().hit.p)
  119. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  120. if v:IsA("BasePart") then
  121. v.Transparency = 1
  122. end
  123. end
  124. local n = 0
  125. local am = 15
  126. for _,v in pairs(Model:GetChildren()) do
  127. if v:IsA("BasePart") then
  128. v.Anchored = false
  129. local Position = Instance.new("BodyPosition",v)
  130. Position.MaxForce = Vector3.new(9e9,9e9,9e9)
  131. Position.P = 20000
  132. Position.Position = game.Players.LocalPlayer.Character.Head.Position
  133. end
  134. end
  135. for i=1,am do
  136. n = (n + 1/am)
  137. for _,v in pairs(Model:GetChildren()) do
  138. if v:IsA("BasePart") then
  139. v.Transparency = n
  140. end
  141. end
  142. wait()
  143. end
  144. wait(0.5)
  145. Model:Destroy()
  146. game.Workspace.Camera.CameraSubject = game.Players.LocalPlayer.Character
  147. local n = 1
  148. local am = 15
  149. for i=1,am do
  150. n = (n - 1/am)
  151. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  152. if v:IsA("BasePart") then
  153. if v.Name ~= "HumanoidRootPart" then
  154. v.Transparency = n
  155. end
  156. end
  157. end
  158. wait()
  159. end
  160. debounce = false
  161. end
  162. elseif key == "h" then --Realm Stone
  163. if debounce == false then
  164. local Mouse = game.Players.LocalPlayer:GetMouse()
  165. if Mouse.Target then
  166. if Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  167. if game.Players:FindFirstChild(Mouse.Target.Parent.Name) then
  168. debounce = true
  169. local Target = Mouse.Target.Parent
  170. local Char = game.Players.LocalPlayer.Character
  171. local n = 0
  172. local r = 0
  173. for i=1,150 do
  174. Char:SetPrimaryPartCFrame(CFrame.new(Target.PrimaryPart.Position) * CFrame.fromOrientation(math.rad(0),math.rad(n),math.rad(0)))
  175. Char:SetPrimaryPartCFrame(CFrame.new(Char.PrimaryPart.Position + Char.PrimaryPart.CFrame.lookVector * (20-r),Target.PrimaryPart.Position))
  176. n = n + 61
  177. r = r+(15/130)
  178. wait()
  179. end
  180. Char:SetPrimaryPartCFrame(CFrame.new(Target.PrimaryPart.Position) * CFrame.fromOrientation(math.rad(0),math.rad(n),math.rad(0)))
  181. Char:SetPrimaryPartCFrame(CFrame.new(Char.PrimaryPart.Position + Char.PrimaryPart.CFrame.lookVector * (20),Target.PrimaryPart.Position))
  182.  
  183. end
  184. end
  185. end
  186. wait(0.1)
  187. debounce = false
  188. end
  189.  
  190. elseif key == "n" then --Time Stone
  191. if #Clock >= 6 then
  192. if debounce == false then
  193. debounce = true
  194. local Color = Instance.new("ColorCorrectionEffect",game.Workspace.Camera)
  195. local g = 255
  196. local Model = Instance.new("Model",workspace)
  197. Model.Name = ""
  198. local Sound = Instance.new("Sound",workspace)
  199. game.Debris:AddItem(Sound,10)
  200. Sound.Playing = true
  201. Sound.SoundId = "rbxassetid://1060064916"
  202. Sound.Volume = 10
  203. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  204. if v:IsA("BasePart") or v:IsA("Accessory") or v:IsA("Humanoid") or v:IsA("CharacterMesh") or v:IsA("Pants") or v:IsA("Shirt") then
  205. local Clone = v:Clone()
  206. Clone.Parent = Model
  207. if Clone:IsA("BasePart") then
  208. Clone.Anchored = true
  209. Clone:BreakJoints()
  210. end
  211. for _,r in pairs(Clone:GetChildren()) do
  212. if r:IsA("BasePart") then
  213. r.Anchored = true
  214. r:BreakJoints()
  215. end
  216. end
  217. end
  218. end
  219. game.Workspace.Camera.CameraSubject = Model:FindFirstChild("Head")
  220. if #Clock >= 1 then
  221. thrust()
  222. local PositionX = Clock[#Clock-5]
  223. local PositionY = Clock[#Clock-4]
  224. local PositionZ = Clock[#Clock-3]
  225. local OriX = Clock[#Clock-2]
  226. local OriY = Clock[#Clock-1]
  227. local OriZ = Clock[#Clock]
  228. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(Vector3.new(PositionX,PositionY,PositionZ)) * CFrame.fromOrientation(math.rad(OriX),math.rad(OriY),math.rad(OriZ)))
  229. for c=1,6 do
  230. table.remove(Clock,#Clock)
  231. end
  232. end
  233. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  234. if v:IsA("BasePart") then
  235. v.Transparency = 1
  236. end
  237. end
  238. local n = 0
  239. local am = 15
  240. for _,v in pairs(Model:GetChildren()) do
  241. if v:IsA("BasePart") then
  242. v.Anchored = false
  243. local Position = Instance.new("BodyPosition",v)
  244. Position.MaxForce = Vector3.new(9e9,9e9,9e9)
  245. Position.P = 20000
  246. Position.Position = game.Players.LocalPlayer.Character.Head.Position
  247. end
  248. end
  249. for i=1,am do
  250. n = (n + 1/am)
  251. g = g-(255/am)
  252. for _,v in pairs(Model:GetChildren()) do
  253. if v:IsA("BasePart") then
  254. v.Transparency = n
  255. Color.TintColor = Color3.fromRGB(g,255,g)
  256. end
  257. end
  258. wait()
  259. end
  260. wait(0.5)
  261. Model:Destroy()
  262. game.Workspace.Camera.CameraSubject = game.Players.LocalPlayer.Character
  263. local n = 1
  264. local am = 15
  265. g = 0
  266. for i=1,am do
  267. n = (n - 1/am)
  268. g = g+(255/am)
  269. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  270. if v:IsA("BasePart") then
  271. if v.Name ~= "HumanoidRootPart" then
  272. v.Transparency = n
  273. Color.TintColor = Color3.fromRGB(g,255,g)
  274. end
  275. end
  276. end
  277. wait()
  278. end
  279. wait(3)
  280. Color:Destroy()
  281. debounce = false
  282. end
  283. end
  284. elseif key == "b" then --Power Stone
  285. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  286. wait(0.1)
  287. if debounce == false then
  288. debounce = true
  289. if fly == "" then
  290. fly = "Jump"
  291. wait(0.5)
  292. fly = "Float"
  293. elseif fly == "Float" then
  294. fly = ""
  295. end
  296. wait(1)
  297. debounce = false
  298. end
  299. elseif key == "m" then --Mind + Realm Stone
  300. if debounce == false then
  301. debounce = true
  302. local Model = Instance.new("Model",workspace)
  303. Model.Name = ""
  304. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  305. if v:IsA("BasePart") or v:IsA("Accessory") or v:IsA("Humanoid") or v:IsA("CharacterMesh") or v:IsA("Pants") or v:IsA("Shirt") then
  306. local Clone = v:Clone()
  307. Clone.Parent = Model
  308. if Clone:IsA("BasePart") then
  309. Clone.Anchored = true
  310. Clone:BreakJoints()
  311. end
  312. for _,r in pairs(Clone:GetChildren()) do
  313. if r:IsA("BasePart") then
  314. r.Anchored = true
  315. r:BreakJoints()
  316. end
  317. end
  318. end
  319. end
  320. local Part = Instance.new("Part",workspace)
  321. Part.Anchored = true
  322. Part.CanCollide = false
  323. Part.Name = ""
  324. Part.Size = Vector3.new(0,0,0)
  325. Part.Shape = Enum.PartType.Ball
  326. Part.Material = "Neon"
  327. Part.BrickColor = BrickColor.new("Neon orange")
  328. Part.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame + Vector3.new(0,-2,0)
  329. local Light = Instance.new("PointLight",Part)
  330. Light.Brightness = 1
  331. Light.Color = Part.Color
  332. Light.Range = 20
  333. Part.Transparency = 0.7
  334. game.Workspace.Camera.CameraSubject = Model:FindFirstChild("Head")
  335. local Origin2 = game.Players.LocalPlayer.Character.PrimaryPart.CFrame
  336. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(0,900000,200000))
  337. wait(0.05)
  338. thrust()
  339. game.Players.LocalPlayer.Character.Head.Anchored = true
  340. for i=1,11 do
  341. Part.Size = Vector3.new(i,i,i)
  342. wait(0.01)
  343. end
  344. wait(7)
  345. Model:Destroy()
  346. Part:Destroy()
  347. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(Origin2)
  348. game.Players.LocalPlayer.Character.Head.Anchored = false
  349. game.Workspace.Camera.CameraSubject = game.Players.LocalPlayer.Character
  350. debounce = false
  351. end
  352.  
  353. elseif key == "u" then --Mind Stone
  354. if debounce == false then
  355. if game.Players.LocalPlayer:GetMouse().Target.Parent then
  356. if game.Players.LocalPlayer:GetMouse().Target.Parent:FindFirstChild("Humanoid") ~= nil then
  357. debounce = true
  358. local Target = game.Players.LocalPlayer:GetMouse().Target.Parent
  359. local Posit = game.Players.LocalPlayer.Character.PrimaryPart.CFrame
  360. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(900000000,900000000,900000000))
  361. game.Workspace.Camera.CameraSubject = Target
  362. wait(0.05)
  363. game.Players.LocalPlayer.Character.Head.Anchored = true
  364. wait(20)
  365. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(Posit)
  366. game.Players.LocalPlayer.Character.Head.Anchored = false
  367. game.Workspace.Camera.CameraSubject = game.Players.LocalPlayer.Character
  368. debounce = false
  369. end
  370. end
  371. end
  372.  
  373. elseif key == "j" then --Soul Stone
  374. if debounce == false then
  375. debounce = true
  376. wait(1)
  377. debounce = false
  378. end
  379. elseif key == "k" then --All Stones
  380. if debounce == false then
  381. debounce = true
  382. if game.Players.LocalPlayer:GetMouse().Target.Anchored == false then
  383. debounce = true
  384. local Model = Instance.new("Model",workspace)
  385. Model.Name = ""
  386. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  387. if v:IsA("BasePart") or v:IsA("Accessory") or v:IsA("Humanoid") or v:IsA("CharacterMesh") or v:IsA("Pants") or v:IsA("Shirt") then
  388. local Clone = v:Clone()
  389. Clone.Parent = Model
  390. if Clone:IsA("BasePart") then
  391. Clone.Anchored = true
  392. Clone:BreakJoints()
  393. end
  394. for _,r in pairs(Clone:GetChildren()) do
  395. if r:IsA("BasePart") then
  396. r.Anchored = true
  397. r:BreakJoints()
  398. end
  399. end
  400. end
  401. end
  402. if Model:FindFirstChild("Right Arm") ~= nil then
  403. Model["Right Arm"].CFrame = CFrame.new(Model["Right Arm"].Position + Model.Head.CFrame.upVector * 0.5 + Model.Head.CFrame.lookVector * 0.5,game.Players.LocalPlayer:GetMouse().Target.Position)*CFrame.fromOrientation(math.rad(90),math.rad(0),math.rad(0))
  404. end
  405. local Sound = Instance.new("Sound",workspace)
  406. game.Debris:AddItem(Sound,2)
  407. Sound.Playing = true
  408. Sound.SoundId = "rbxassetid://2770705979"
  409. Sound.Volume = 10
  410. local Beam = Instance.new("Part",workspace)
  411. Beam.Anchored = true
  412. Beam.Transparency = 1
  413. Beam.CanCollide = false
  414. Beam.BrickColor = BrickColor.new("Institutional white")
  415. Beam.Material = "Neon"
  416. game.Workspace.Camera.CameraSubject = Model:FindFirstChild("Head")
  417. local Posi = game.Players.LocalPlayer:GetMouse().Target.Position
  418. local Velo = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character.Head)
  419. Origin = game.Players.LocalPlayer.Character.PrimaryPart.CFrame
  420. Velo.MaxForce = Vector3.new(9e9,9e9,9e9)
  421. Velo.Velocity = Vector3.new(0,math.huge,math.huge)
  422. Beam.Transparency = 0
  423. Position = Posi
  424. local kaboom = Instance.new("Explosion",workspace)
  425. kaboom.BlastPressure = 0
  426. kaboom.BlastRadius = 0
  427. kaboom.DestroyJointRadiusPercent = 0
  428. kaboom.Position = Posi
  429. if Model:FindFirstChild("Right Arm") ~= nil then
  430. local Pos = (Model["Right Arm"].Position - Posi).magnitude
  431. Beam.CFrame = CFrame.new(Model["Right Arm"].Position - Model["Right Arm"].CFrame.upVector * Pos/2,Posi)
  432. Beam.Size = Vector3.new(2,2,Pos)
  433. game.Debris:AddItem(Beam,0.2)
  434. end
  435. debounce = false
  436. wait(1)
  437. Velo:Destroy()
  438. Position = nil
  439. Model:Destroy()
  440. game.Workspace.Camera.CameraSubject = game.Players.LocalPlayer.Character
  441. for i=1,50 do
  442. thrust()
  443. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(Origin)
  444. wait()
  445. end
  446. end
  447. wait(1)
  448. debounce = false
  449. end
  450. end
  451. end
  452. end)
  453. game["Run Service"].Heartbeat:connect(function(step)
  454. if Position ~= nil then
  455. local Target = Position
  456. game.Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(Target) * CFrame.fromOrientation(math.rad(90),math.rad(90),math.rad(90)))
  457. wait(step)
  458. end
  459. if fly == "Float" then
  460. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  461. if v:IsA("BasePart") then
  462. v.RotVelocity = Vector3.new(v.RotVelocity.X,0,v.RotVelocity.Z)
  463. v.Velocity = Vector3.new(v.Velocity.X,2.1,v.Velocity.Z)
  464. end
  465. for _,q in pairs(v:GetChildren()) do
  466. if q:IsA("BasePart") then
  467. q.RotVelocity = Vector3.new(q.RotVelocity.X,0,q.RotVelocity.Z)
  468. q.Velocity = Vector3.new(q.Velocity.X,2.1,q.Velocity.Z)
  469. end
  470. end
  471. end
  472. elseif fly == "Jump" then
  473. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  474. if v:IsA("BasePart") then
  475. v.RotVelocity = Vector3.new(0,0,0)
  476. v.Velocity = Vector3.new(0,100,0)
  477. end
  478. for _,q in pairs(v:GetChildren()) do
  479. if q:IsA("BasePart") then
  480. q.RotVelocity = Vector3.new(0,0,0)
  481. q.Velocity = Vector3.new(0,100,0)
  482. end
  483. end
  484. end
  485. end
  486. end)
  487. function thanos()
  488. wait(0.35)
  489. for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  490. if v:IsA("BasePart") then
  491. v.BrickColor = BrickColor.new("Royal purple")
  492. end
  493. if v:IsA("Accessory") then
  494. v:Destroy()
  495. end
  496. if v:IsA("CharacterMesh") then
  497. v:Destroy()
  498. end
  499. if v.Name == "Head" then
  500. v.Mesh:Destroy()
  501. local Head = Instance.new("SpecialMesh",v)
  502. Head.Scale = Vector3.new(1.25,1.25,1.25)
  503. end
  504. end
  505. local Pants = Instance.new("Pants",game.Players.LocalPlayer.Character)
  506. Pants.PantsTemplate = "http://www.roblox.com/asset/?id=2585191069"
  507. end
  508. thanos()
  509. game.Players.LocalPlayer.CharacterAdded:connect(function()
  510. thanos()
  511. Die = false
  512. end)
  513.  
  514. game.Players.LocalPlayer.Character.Humanoid.Died:connect(function()
  515. Die = true
  516. end)
  517.  
  518. while true do
  519. wait(20)
  520. repeat wait(1)
  521. if game.Players.LocalPlayer.Character.PrimaryPart ~= nil then
  522. PrimaryPart = game.Players.LocalPlayer.Character.PrimaryPart
  523. table.insert(Clock,PrimaryPart.Position.X)
  524. table.insert(Clock,PrimaryPart.Position.Y)
  525. table.insert(Clock,PrimaryPart.Position.Z)
  526. table.insert(Clock,PrimaryPart.Orientation.X)
  527. table.insert(Clock,PrimaryPart.Orientation.Y)
  528. table.insert(Clock,PrimaryPart.Orientation.Z)
  529. thrust()
  530. end
  531. until debounce == false
  532. end
  533.  
  534. --Thanos Exploit
  535. --Press Y To use Space Stone
  536. --Press G to use Power Stone
  537. --Press B to use Power+Space Stone
  538. --Press M to use Power+Realm Stone
  539. --Press U to use Mind Stone
  540. --Press H to use Realm Stone
  541. --Press N to use Time Stone
  542. --Press J to use Soul Stone
  543. --Press K to use All Stones
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement