Advertisement
coolgoldboy166

tactical nuke

Sep 30th, 2017
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.15 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Humanoid1 = Instance.new("Humanoid")
  21. Part2 = Instance.new("Part")
  22. CylinderMesh3 = Instance.new("CylinderMesh")
  23. Part4 = Instance.new("Part")
  24. CylinderMesh5 = Instance.new("CylinderMesh")
  25. Script6 = Instance.new("Script")
  26. Model0.Name = " "
  27. Model0.Parent = mas
  28. Humanoid1.Parent = Model0
  29. Humanoid1.Health = 0
  30. Humanoid1.MaxHealth = 0
  31. Part2.Parent = Model0
  32. Part2.BrickColor = BrickColor.new("Dark stone grey")
  33. Part2.Reflectance = 0.5
  34. Part2.Anchored = true
  35. Part2.Size = Vector3.new(5, 1.20000005, 5)
  36. Part2.CFrame = CFrame.new(-22.9699993, 0.600000024, -20.0399952, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  37. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  38. Part2.Position = Vector3.new(-22.9699993, 0.600000024, -20.0399952)
  39. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  40. CylinderMesh3.Parent = Part2
  41. Part4.Name = "Head"
  42. Part4.Parent = Model0
  43. Part4.BrickColor = BrickColor.new("Really red")
  44. Part4.Anchored = true
  45. Part4.Size = Vector3.new(5, 1.20000005, 5)
  46. Part4.CFrame = CFrame.new(-22.9699993, 1.79999995, -20.0399952, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  47. Part4.Color = Color3.new(1, 0, 0)
  48. Part4.Position = Vector3.new(-22.9699993, 1.79999995, -20.0399952)
  49. Part4.Color = Color3.new(1, 0, 0)
  50. CylinderMesh5.Parent = Part4
  51. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  52. CylinderMesh5.Scale = Vector3.new(0.75, 1, 0.75)
  53. Script6.Parent = Part4
  54. table.insert(cors,sandbox(Script6,function()
  55. local ONOES = Instance.new("Sound")
  56. ONOES.SoundId = "rbxassetid://199837904"
  57. ONOES.Volume = 10
  58. ONOES.EmitterSize = math.huge
  59. ONOES.Looped = false
  60. ONOES.archivable = false
  61. ONOES.Parent = workspace
  62.  
  63. --game:GetService("Debris").MaxItems = 350 -- Decrease if you have a laggy computer
  64. local s = Instance.new("Sound")
  65. s.Volume = 10
  66. s.EmitterSize = math.huge
  67. sounds = {"rbxasset://sounds\\rocket shot.wav", "rbxasset://sounds\\collide.wav"}
  68. local workspace = game.Workspace
  69.  
  70. function check(object)
  71.  
  72. if object.className == "Model" and object:findFirstChild("Humanoid") == nil then
  73. for i, v in ipairs(object:getChildren()) do
  74. check(v)
  75. wait()
  76. end
  77. end
  78. if object:IsA("Part") then
  79. local soundclone = s:Clone()
  80. soundclone.SoundId = sounds[math.random(1, 2)]
  81. game:GetService("Debris"):AddItem(object, 300)
  82. soundclone.Pitch = math.random(9, 12)/10
  83. soundclone.Parent = object
  84. delay(0.1, function() soundclone:Play() end)
  85. delay(0, function()
  86. for i = 1, 15*1.5 do
  87. local e = Instance.new("Explosion")
  88. e.Parent = workspace
  89. e.BlastPressure = 1e4*object:getMass()
  90. e.Position = object.Position
  91. object.Anchored = false
  92. object:BreakJoints()
  93. wait(1.5)
  94. end
  95. end)
  96. end
  97. end
  98.  
  99. local deb = true
  100. script.Parent.Touched:connect(function(hit)
  101. if not deb then return end
  102. deb = false
  103. ONOES:Play()
  104. script.Parent.Parent.Name = ""
  105. local c = script.Parent.CFrame
  106. for i = 0, 1, 0.05 do
  107. script.Parent.CFrame = c - Vector3.new(0, i, 0)
  108. wait()
  109. end
  110. local m = Instance.new("Message")
  111. m.Text = "TACTICAL NUKE INCOMING!!!!"
  112. m.Parent = workspace
  113. local color = game.Lighting.Ambient
  114. delay(0, function()
  115. while true do
  116. game.Lighting.Brightness = 2
  117. game.Lighting.Ambient = Color3.new(100, 0, 0)
  118. game.Lighting.ColorShift_Top = Color3.new(1, 0, 0)
  119. game.Lighting.ColorShift_Bottom = Color3.new(1, 0, 0)
  120. wait(1)
  121. game.Lighting.Brightness = 1
  122. game.Lighting.Ambient = color
  123. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  124. game.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  125. wait(1)
  126. end
  127. end)
  128. wait(5)
  129. m:remove()
  130. script.Parent.Parent.Name = "OOF"
  131. for i, v in ipairs(workspace:getChildren()) do
  132. check(v)
  133. wait()
  134. end
  135. end)
  136.  
  137. end))
  138. for i,v in pairs(mas:GetChildren()) do
  139. v.Parent = workspace
  140. pcall(function() v:MakeJoints() end)
  141. end
  142. mas:Destroy()
  143. for i,v in pairs(cors) do
  144. spawn(function()
  145. pcall(v)
  146. end)
  147. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement