Advertisement
iiJosephCats205

NUKE SCRIPT 2

Dec 1st, 2018
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 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. Part0 = Instance.new("Part")
  20. SpecialMesh1 = Instance.new("SpecialMesh")
  21. Script2 = Instance.new("Script")
  22. Sound3 = Instance.new("Sound")
  23. Part0.Name = "NUKE"
  24. Part0.Parent = mas
  25. Part0.CFrame = CFrame.new(0, 2475, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  26. Part0.Position = Vector3.new(0, 2475, 0)
  27. Part0.Size = Vector3.new(5, 12, 5)
  28. Part0.Anchored = true
  29. Part0.BottomSurface = Enum.SurfaceType.Weld
  30. Part0.CanCollide = false
  31. SpecialMesh1.Parent = Part0
  32. SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=31601976"
  33. SpecialMesh1.Scale = Vector3.new(5, 6.5, 5)
  34. SpecialMesh1.VertexColor = Vector3.new(0, 1, 0)
  35. SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=47236382"
  36. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  37. Script2.Parent = Part0
  38. Sound3:Play()
  39. table.insert(cors,sandbox(Script2,function()
  40. wait(4)
  41. script.Parent.Anchored = false
  42. script.Parent.Touched:Connect(function()
  43. print("HIT")
  44. script.Parent.Anchored = true
  45. local Radiation = Instance.new("Part",workspace)
  46. Radiation.CFrame = script.Parent.CFrame
  47. Radiation.Anchored = true
  48. Radiation.Shape = "Ball"
  49. Radiation.BrickColor = BrickColor.new("Deep orange")
  50. Radiation.Material = Enum.Material.Glass
  51. Radiation.Transparency = 0.4
  52. for i = 1,1500,5 do
  53. wait(0.01)
  54. Radiation.Size = Vector3.new(i,i,i)
  55. Radiation.Touched:Connect(function(hit)
  56. local h = hit.Parent:FindFirstChild("Humanoid")
  57. if {h ~= nil} then
  58. h.Health = 0
  59. else
  60.  
  61. end
  62. end)
  63. end
  64. for i = 0.4,1,0.1 do
  65. wait(0.1)
  66. Radiation.Transparency = i
  67. end
  68. Radiation:Destroy()
  69. end)
  70. end))
  71. Sound3.Parent = mas
  72. Sound3.SoundId = "rbxassetid://317987498"
  73. Sound3.Parent = Part0
  74. for i,v in pairs(mas:GetChildren()) do
  75. v.Parent = workspace
  76. pcall(function() v:MakeJoints() end)
  77. end
  78. mas:Destroy()
  79. for i,v in pairs(cors) do
  80. spawn(function()
  81. pcall(v)
  82. end)
  83. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement