Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- this nuclear bomb will kill if close
- -- PLEASE DO NOT ABUSE WITH IT
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Model1 = Instance.new("Model")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- SpecialMesh4 = Instance.new("SpecialMesh")
- Script5 = Instance.new("Script")
- Script6 = Instance.new("Script")
- Script7 = Instance.new("Script")
- Model0.Name = "MushRoomCloud"
- Model0.Parent = mas
- Model1.Name = "Explosion"
- Model1.Parent = Model0
- Part2.Name = "BLAST"
- Part2.Parent = Model1
- Part2.Material = Enum.Material.Neon
- Part2.BrickColor = BrickColor.new("New Yeller")
- Part2.Transparency = 1
- Part2.Anchored = true
- Part2.CanCollide = false
- Part2.Shape = Enum.PartType.Ball
- Part2.Size = Vector3.new(4, 4, 4)
- Part2.CFrame = CFrame.new(35.3600006, 0.310742319, 133.229996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Color = Color3.new(1, 1, 0)
- Part2.Position = Vector3.new(35.3600006, 0.310742319, 133.229996)
- Part2.Color = Color3.new(1, 1, 0)
- Part3.Name = "Cloud"
- Part3.Parent = Part2
- Part3.BrickColor = BrickColor.new("Light stone grey")
- Part3.Transparency = 1
- Part3.Rotation = Vector3.new(0.0199999996, 90, 0)
- Part3.Anchored = true
- Part3.FormFactor = Enum.FormFactor.Custom
- Part3.Size = Vector3.new(1, 34.6000175, 4)
- Part3.CFrame = CFrame.new(28.0921631, 17.3004322, 144.115662, 3.35276127e-08, 0.000127734078, 1, 0.000328166294, 0.99999994, -0.000127734107, -1, 0.000328166265, -7.4505806e-09)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.Color = Color3.new(0.898039, 0.894118, 0.87451)
- Part3.Position = Vector3.new(28.0921631, 17.3004322, 144.115662)
- Part3.Orientation = Vector3.new(0.00999999978, 90, 0.0199999996)
- Part3.Color = Color3.new(0.898039, 0.894118, 0.87451)
- SpecialMesh4.Parent = Part3
- SpecialMesh4.MeshId = "http://www.roblox.com/asset/?id=153994027"
- SpecialMesh4.Scale = Vector3.new(5, 5, 5)
- SpecialMesh4.TextureId = "http://www.roblox.com/asset/?id=153994115"
- SpecialMesh4.MeshType = Enum.MeshType.FileMesh
- SpecialMesh4.Scale = Vector3.new(5, 5, 5)
- Script5.Name = "Deadly"
- Script5.Parent = Part2
- table.insert(cors,sandbox(Script5,function()
- function onTouched(hit)
- local human = hit.Parent:findFirstChild("Humanoid")
- if (human ~= nil) then
- human.Health = human.Health - 4
- elseif script.Parent.Transparency > 1 then
- script.Disabled = true
- end
- end
- --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
- -- connection = script.Parent.Touched:connect(onTouched)
- --end -- Grass Troll by RangeMeludE --
- script.Parent.Touched:connect(onTouched)
- end))
- Script6.Parent = Model0
- table.insert(cors,sandbox(Script6,function()
- stop = true
- brick = script.Parent.Explosion.BLAST
- for n = 1,32 do
- wait()
- cc = game.Lighting
- cc.Brightness = cc.Brightness + 0.01
- end
- for n1 = 1,54 do
- wait()
- brick.Transparency = brick.Transparency - 0.01
- end
- for n1 = 1,140 do
- wait()
- brick.Size =brick.Size + Vector3.new(2,2,2)
- end
- for n1 = 1,200 do
- wait()
- brick.Cloud.Transparency = brick.Cloud.Transparency - 0.01
- brick.Cloud.Mesh.Scale =brick.Cloud.Mesh.Scale + Vector3.new(0.14,0.14,0.14)
- brick.Cloud.Mesh.Offset =brick.Cloud.Mesh.Offset + Vector3.new(0,0.31,0)
- brick.Cloud.Mesh.VertexColor = brick.Cloud.Mesh.VertexColor - Vector3.new(0.1,0.1,0.1)
- end
- cl = script.Script:Clone()
- cl.Disabled =false
- cl.Parent = brick.Cloud
- for n1 = 1,140 do
- wait()
- brick.Transparency = brick.Transparency + 0.01
- end
- stop = true
- for n2 = 1,32 do
- wait()
- cc = game.Lighting
- cc.Brightness = cc.Brightness - 0.01
- end
- wait(7)
- for n1 = 1,190 do
- wait()
- brick.Cloud.Transparency =brick.Cloud.Transparency + 0.01
- end
- for n0 = 1,140 do
- wait()
- brick.Size =brick.Size - Vector3.new(2,2,2)
- end
- brick:Destroy()
- end))
- Script7.Parent = Script6
- Script7.Disabled = true
- table.insert(cors,sandbox(Script7,function()
- local hole = script.Parent
- local childList = {}
- local massConstant = 9.5
- local mass = 19800 * massConstant
- function checkObject(obj)
- if (obj ~= hole) and (obj.className == "Part") then
- if (obj.Anchored == false) then
- table.insert(childList, 1, obj)
- end
- elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
- local child = obj:GetChildren()
- for x = 1, #child do
- checkObject(child[x])
- end
- obj.ChildAdded:connect(checkObject)
- end
- end
- checkObject(workspace)
- print("Black Hole script loaded.")
- local n = 0
- while true do
- if n < #childList then
- n = n + 1
- if n % 800 == 0 then
- wait()
- end
- else
- n = 1
- wait()
- end
- local child = childList[n]
- if (child ~= hole) and (child.className == "Part") and (child.Anchored == false) then
- local relPos = hole.Position - child.Position
- local motivator = child:FindFirstChild("BlackHole Influence")
- if relPos.magnitude * 240 * massConstant < mass then
- child:BreakJoints()
- if (relPos.magnitude * 320 * massConstant < mass) and (child.Size.z + hole.Size.x > relPos.magnitude * 2 - 4) then
- mass = mass + child:GetMass()
- child:Remove()
- table.remove(childList, n)
- n = n - 1
- else
- child.CanCollide = false
- if motivator == nil then
- motivator = Instance.new("BodyPosition")
- motivator.Parent = child
- motivator.Name = "BlackHole Influence"
- end
- motivator.position = hole.Position
- motivator.maxForce = Vector3.new(1, 1, 1) * mass * child:GetMass() / (relPos.magnitude * massConstant)
- end
- elseif motivator ~= nil then
- motivator:Remove()
- end
- end
- end
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement