Advertisement
Aaronremmers14

Nuke test

May 24th, 2016
971
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.26 KB | None | 0 0
  1. --Created with ttyyuu12345's compiler
  2. --ttyyuu12345 is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --ttyyuu12345 cannot be held resonsible for manual deletion for the purpose of testing
  5. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  6. --Thank you for using my plugin and enjoy :)
  7. --It is free to use, however I do accept donations
  8. --Errors:
  9. Create = function(itemClass,tabl)
  10. local item = Instance.new(itemClass)
  11. for i,v in pairs(tabl) do
  12. local a,b = ypcall(function() return item[i] end)
  13. if a then
  14. item[i] = tabl[i]
  15. end
  16. end
  17. return item
  18. end
  19. function runDummyScript(f,scri)
  20. local oldenv = getfenv(f)
  21. local newenv = setmetatable({}, {
  22. __index = function(_, k)
  23. if k:lower() == 'script' then
  24. return scri
  25. else
  26. return oldenv[k]
  27. end
  28. end
  29. })
  30. setfenv(f, newenv)
  31. ypcall(function() f() end)
  32. end
  33. cors = {}
  34. mas = Instance.new("Model",game:GetService("Lighting"))
  35. mas.Name = "CompiledModel"
  36. o1 = Create("Model",{
  37. ["Name"] = "Nuke",
  38. ["Parent"] = mas,
  39. })
  40. o2 = Create("Part",{
  41. ["Name"] = "Tip",
  42. ["Parent"] = o1,
  43. ["BrickColor"] = BrickColor.new("Black"),
  44. ["Position"] = Vector3.new(44.9099045, 5908.60059, 31.0297127),
  45. ["CFrame"] = CFrame.new(44.9099045, 5908.60059, 31.0297127, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  46. ["FormFactor"] = Enum.FormFactor.Symmetric,
  47. ["Size"] = Vector3.new(6, 10, 6),
  48. ["BackSurface"] = Enum.SurfaceType.Weld,
  49. ["BottomSurface"] = Enum.SurfaceType.Weld,
  50. ["FrontSurface"] = Enum.SurfaceType.Weld,
  51. ["LeftSurface"] = Enum.SurfaceType.Weld,
  52. ["RightSurface"] = Enum.SurfaceType.Weld,
  53. ["TopSurface"] = Enum.SurfaceType.Weld,
  54. ["Color"] = Color3.new(0.105882, 0.164706, 0.207843),
  55. })
  56. o3 = Create("Script",{
  57. ["Name"] = "Touch",
  58. ["Parent"] = o2,
  59. })
  60. table.insert(cors,coroutine.create(function()
  61. wait()
  62. runDummyScript(function()
  63. shockRing = Instance.new("Part")
  64. shockRing.formFactor = 2
  65. shockRing.Size = Vector3.new(50, 0.4, 50)
  66. shockRing.Anchored = true
  67. shockRing.Locked = true
  68. shockRing.CanCollide = false
  69. shockRing.archivable = false
  70. shockRing.TopSurface = 0
  71. shockRing.BottomSurface = 0
  72. shockRing.Transparency = 1
  73.  
  74. local decal = Instance.new("Decal")
  75. decal.Face = 1
  76. decal.Texture = "http://www.roblox.com/asset/?version=1&id=1280730"
  77. decal.Parent = shockRing
  78.  
  79. local bottomDecal = decal:Clone()
  80. bottomDecal.Face = 4
  81. bottomDecal.Parent = shockRing
  82.  
  83. debounce = true
  84. function activate(hit)
  85. if debounce == false then return end
  86. debounce = false
  87. script.Parent.Parent.Fire:play()
  88. game.Lighting.Brightness = 999
  89. grow3 = script.Parent.Grow3:clone()
  90. grow3.Disabled = false
  91. grow3.Grow4.Disabled = false
  92. grow3.Parent = script.Parent.Parent.ShockWave
  93. stay2 = script.Parent.Stay:clone()
  94. stay2.Disabled = false
  95. stay2.Parent = script.Parent.Parent.ShockWave
  96. script.Parent.Parent.ShockWave.Anchored = true
  97. script.Parent.Parent.ShockWave.Transparency = 0
  98. script.Parent.Anchored = true
  99. script.Parent.Parent.Cloud.Anchored = true
  100. script.Parent.Parent.Cloud.Transparency = 0
  101. script.Parent.Parent.Cloud2.Anchored = true
  102. script.Parent.Parent.Support.Anchored = true
  103. script.Parent.Parent.Support.Size = Vector3.new(2,175,2)
  104. script.Parent.Parent.Cloud2.Position = script.Parent.Parent.Support.Position
  105. script.Parent.Parent.Cloud2.Transparency = 0
  106. wait(0.05)
  107. --Boom2 = Instance.new("Explosion")
  108. --Boom2.BlastRadius = 40
  109. --Boom2.Parent = game.Workspace
  110. --Boom2.Position = script.Parent.Position
  111. wait(0.5)
  112. --Boom2:Remove()
  113. --Boom = Instance.new("Part")
  114. --Boom.Parent = game.Workspace
  115. --Boom.formFactor = 0
  116. --Boom.Shape = 0
  117. --Boom.BrickColor = BrickColor:Red()
  118. --Boom.Position = script.Parent.Position
  119. --Boom.Transparency = 1
  120. --Boom.Size = Vector3.new(1, 1, 1)
  121. --Boom.Anchored = true
  122. --Boom.TopSurface = "Smooth"
  123. --Boom.BottomSurface = "Smooth"
  124. --script.Parent.Transparency = 1
  125. --Script = script.Parent.Explosion
  126. --SC = Script:clone()
  127. --SC.Disabled = false
  128. --SC.Parent = Boom
  129. --Grow = script.Parent.Grow
  130. --GC = Grow:clone()
  131. --GC.Disabled = false
  132. --GC.Parent = Boom
  133. --Stay = script.Parent.Stay
  134. --SC = Stay:clone()
  135. --SC.Disabled = false
  136. --SC.Parent = Boom
  137. --Boom2 = Instance.new("Explosion")
  138. --Boom2.BlastRadius = 40
  139. --Boom2.Position = script.Parent.Position
  140. --pos = script.Parent.Position
  141. --shockRing.Position = pos
  142. --shockRing.Parent = game.Workspace
  143. --Grow2 = script.Parent.Grow2
  144. --G2C = Grow2:clone()
  145. --G2C.Disabled = false
  146. --G2C.Parent = shockRing
  147. --Script2 = script.Parent.Explosion
  148. --S2C = Script2:clone()
  149. --S2C.Disabled = false
  150. --S2C.Parent = shockRing
  151. --Stay2 = script.Parent.Stay
  152. --S2C = Stay:clone()
  153. --S2C.Disabled = false
  154. --S2C.Parent = shockRing
  155. wait(0.5)
  156. game.Lighting.Brightness = 1
  157. --Boom2:Remove()
  158. wait(7)
  159. script.Parent.Parent.Fire:remove()
  160. script.Parent.Parent:Remove()
  161. wait(100)
  162. end
  163.  
  164. script.Parent.Touched:connect(activate)
  165.  
  166. end,o3)
  167. end))
  168. o4 = Create("Script",{
  169. ["Name"] = "Stay",
  170. ["Parent"] = o2,
  171. ["Disabled"] = true,
  172. })
  173. table.insert(cors,coroutine.create(function()
  174. wait()
  175. runDummyScript(function()
  176. wait(0.1)
  177. pos = script.Parent.CFrame
  178. while true do
  179. script.Parent.CFrame = pos
  180. wait(0.000000000000000000000000000000000000000000000000001)
  181. end
  182.  
  183. end,o4)
  184. end))
  185. o5 = Create("Script",{
  186. ["Name"] = "Grow",
  187. ["Parent"] = o2,
  188. ["Disabled"] = true,
  189. })
  190. table.insert(cors,coroutine.create(function()
  191. wait()
  192. runDummyScript(function()
  193. wait(0.1)
  194. Boom = script.Parent
  195. for i = 1, 200 do
  196. Boom.Size = Boom.Size + Vector3.new(1, 1, 1)
  197. wait(0.01)
  198. end
  199. Boom:Remove()
  200. end,o5)
  201. end))
  202. o6 = Create("Script",{
  203. ["Name"] = "Explosion",
  204. ["Parent"] = o2,
  205. ["Disabled"] = true,
  206. })
  207. table.insert(cors,coroutine.create(function()
  208. wait()
  209. runDummyScript(function()
  210. wait(0.1)
  211. function destroy(hit)
  212. Boom = Instance.new("Explosion")
  213. Boom.Parent = game.Workspace
  214. Boom.Parent.BlastRadius = 200
  215. Boom.Position = hit.Position
  216. wait(1)
  217. Boom:Remove()
  218. end
  219.  
  220. script.Parent.Touched:connect(destroy)
  221.  
  222. end,o6)
  223. end))
  224. o7 = Create("Script",{
  225. ["Name"] = "Grow3",
  226. ["Parent"] = o2,
  227. ["Disabled"] = true,
  228. })
  229. table.insert(cors,coroutine.create(function()
  230. wait()
  231. runDummyScript(function()
  232. wait(0.1)
  233. Boom = script.Parent
  234. Boom.Mesh.Scale = Vector3.new(1, 1, 500)
  235. for i = 1, 700 do
  236. Boom.Mesh.Scale = Boom.Mesh.Scale + Vector3.new(3, 3, 0)
  237. wait(0.0001)
  238. end
  239. Boom:Remove()
  240. end,o7)
  241. end))
  242. o8 = Create("Script",{
  243. ["Name"] = "Grow4",
  244. ["Parent"] = o7,
  245. ["Disabled"] = true,
  246. })
  247. table.insert(cors,coroutine.create(function()
  248. wait()
  249. runDummyScript(function()
  250. wait(0.1)
  251. Boom = script.Parent.Parent
  252. for i = 1, 700 do
  253. Boom.Size = Boom.Size + Vector3.new(3, 3, 0)
  254. wait(0.0001)
  255. end
  256. Boom:Remove()
  257. end,o8)
  258. end))
  259. o9 = Create("Script",{
  260. ["Name"] = "Grow2",
  261. ["Parent"] = o2,
  262. ["Disabled"] = true,
  263. })
  264. table.insert(cors,coroutine.create(function()
  265. wait()
  266. runDummyScript(function()
  267. wait(0.1)
  268. Boom = script.Parent
  269. for i = 1, 200 do
  270. Boom.Size = Boom.Size + Vector3.new(3, 0, 3)
  271. wait(0.01)
  272. end
  273. Boom:Remove()
  274. end,o9)
  275. end))
  276. o10 = Create("SpecialMesh",{
  277. ["Parent"] = o2,
  278. ["MeshId"] = "http://www.roblox.com/asset/?id=31601976",
  279. ["Scale"] = Vector3.new(5, 5, 5),
  280. ["TextureId"] = "http://www.roblox.com/asset/?id=31601599",
  281. ["MeshType"] = Enum.MeshType.FileMesh,
  282. })
  283. o11 = Create("Sound",{
  284. ["Name"] = "Fire",
  285. ["Parent"] = o1,
  286. ["Pitch"] = 0.20000000298023,
  287. ["SoundId"] = "http://www.roblox.com/asset?id=2248511",
  288. ["Volume"] = 1,
  289. })
  290. o12 = Create("Part",{
  291. ["Name"] = "ShockWave",
  292. ["Parent"] = o1,
  293. ["BrickColor"] = BrickColor.new("Dark stone grey"),
  294. ["Transparency"] = 1,
  295. ["Position"] = Vector3.new(44.9099045, 5903.10059, 31.0297127),
  296. ["Rotation"] = Vector3.new(-90, 0, -0),
  297. ["CFrame"] = CFrame.new(44.9099045, 5903.10059, 31.0297127, 1, 0, 0, 0, 0, 1, 0, -1, 0),
  298. ["CanCollide"] = false,
  299. ["Size"] = Vector3.new(2, 2.4000001, 1),
  300. ["BackSurface"] = Enum.SurfaceType.Weld,
  301. ["BottomSurface"] = Enum.SurfaceType.Weld,
  302. ["FrontSurface"] = Enum.SurfaceType.Weld,
  303. ["LeftSurface"] = Enum.SurfaceType.Weld,
  304. ["RightSurface"] = Enum.SurfaceType.Weld,
  305. ["TopSurface"] = Enum.SurfaceType.Weld,
  306. ["Color"] = Color3.new(0.388235, 0.372549, 0.384314),
  307. })
  308. o13 = Create("SpecialMesh",{
  309. ["Parent"] = o12,
  310. ["MeshId"] = "http://www.roblox.com/asset/?id=3270017",
  311. ["MeshType"] = Enum.MeshType.FileMesh,
  312. })
  313. o14 = Create("Part",{
  314. ["Name"] = "Gyro",
  315. ["Parent"] = o1,
  316. ["BrickColor"] = BrickColor.new("Bright blue"),
  317. ["Transparency"] = 1,
  318. ["Position"] = Vector3.new(44.9099045, 5914.10059, 31.0297127),
  319. ["Rotation"] = Vector3.new(-180, 0, -180),
  320. ["CFrame"] = CFrame.new(44.9099045, 5914.10059, 31.0297127, -1, 0, 0, 0, 1, 0, 0, 0, -1),
  321. ["FormFactor"] = Enum.FormFactor.Symmetric,
  322. ["Size"] = Vector3.new(2, 1, 2),
  323. ["Color"] = Color3.new(0.0509804, 0.411765, 0.67451),
  324. })
  325. o15 = Create("ClickDetector",{
  326. ["Parent"] = o14,
  327. })
  328. o16 = Create("BodyGyro",{
  329. ["Parent"] = o14,
  330. })
  331. o17 = Create("Part",{
  332. ["Name"] = "Cloud",
  333. ["Parent"] = o1,
  334. ["BrickColor"] = BrickColor.new("Dark stone grey"),
  335. ["Transparency"] = 1,
  336. ["Position"] = Vector3.new(44.9099045, 5915.60059, 31.0297127),
  337. ["Rotation"] = Vector3.new(-90, 90, 0),
  338. ["CFrame"] = CFrame.new(44.9099045, 5915.60059, 31.0297127, 0, 0, 1, -1, 0, 0, 0, -1, 0),
  339. ["CanCollide"] = false,
  340. ["FormFactor"] = Enum.FormFactor.Symmetric,
  341. ["Size"] = Vector3.new(2, 2, 2),
  342. ["BackSurface"] = Enum.SurfaceType.Weld,
  343. ["BottomSurface"] = Enum.SurfaceType.Weld,
  344. ["FrontSurface"] = Enum.SurfaceType.Weld,
  345. ["LeftSurface"] = Enum.SurfaceType.Weld,
  346. ["RightSurface"] = Enum.SurfaceType.Weld,
  347. ["TopSurface"] = Enum.SurfaceType.Weld,
  348. ["Color"] = Color3.new(0.388235, 0.372549, 0.384314),
  349. })
  350. o18 = Create("SpecialMesh",{
  351. ["Parent"] = o17,
  352. ["MeshId"] = "http://www.roblox.com/asset/?id=1095708",
  353. ["Scale"] = Vector3.new(300, 100, 100),
  354. ["TextureId"] = "http://www.roblox.com/asset/?id=0",
  355. ["MeshType"] = Enum.MeshType.FileMesh,
  356. })
  357. o19 = Create("Part",{
  358. ["Name"] = "Cloud2",
  359. ["Parent"] = o1,
  360. ["BrickColor"] = BrickColor.new("Dark stone grey"),
  361. ["Transparency"] = 1,
  362. ["Position"] = Vector3.new(44.9099045, 5918.00098, 31.0297127),
  363. ["Rotation"] = Vector3.new(-90, 90, 0),
  364. ["CFrame"] = CFrame.new(44.9099045, 5918.00098, 31.0297127, 0, 0, 1, -1, 0, 0, 0, -1, 0),
  365. ["CanCollide"] = false,
  366. ["FormFactor"] = Enum.FormFactor.Symmetric,
  367. ["Size"] = Vector3.new(2, 2, 2),
  368. ["BackSurface"] = Enum.SurfaceType.Weld,
  369. ["BottomSurface"] = Enum.SurfaceType.Weld,
  370. ["FrontSurface"] = Enum.SurfaceType.Weld,
  371. ["LeftSurface"] = Enum.SurfaceType.Weld,
  372. ["RightSurface"] = Enum.SurfaceType.Weld,
  373. ["TopSurface"] = Enum.SurfaceType.Weld,
  374. ["Color"] = Color3.new(0.388235, 0.372549, 0.384314),
  375. })
  376. o20 = Create("SpecialMesh",{
  377. ["Parent"] = o19,
  378. ["MeshId"] = "http://www.roblox.com/asset/?id=1095708",
  379. ["Scale"] = Vector3.new(50, 500, 500),
  380. ["TextureId"] = "http://www.roblox.com/asset/?id=0",
  381. ["MeshType"] = Enum.MeshType.FileMesh,
  382. })
  383. o21 = Create("Part",{
  384. ["Name"] = "Support",
  385. ["Parent"] = o1,
  386. ["BrickColor"] = BrickColor.new("Bright blue"),
  387. ["Transparency"] = 1,
  388. ["Position"] = Vector3.new(44.9099045, 5916.80078, 31.0297127),
  389. ["CFrame"] = CFrame.new(44.9099045, 5916.80078, 31.0297127, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  390. ["FormFactor"] = Enum.FormFactor.Plate,
  391. ["Size"] = Vector3.new(2, 0.400000006, 2),
  392. ["Color"] = Color3.new(0.0509804, 0.411765, 0.67451),
  393. })
  394. mas.Parent = workspace
  395. mas:MakeJoints()
  396. local mas1 = mas:GetChildren()
  397. for i=1,#mas1 do
  398. mas1[i].Parent = script
  399. ypcall(function() mas1[i]:MakeJoints() end)
  400. end
  401. mas:Destroy()
  402. for i=1,#cors do
  403. coroutine.resume(cors[i])
  404. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement