Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --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"))
- local chil = workspace:GetChildren()
- for i,v in pairs(chil) do
- if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
- v:Destroy()
- end
- end
- Part0 = Instance.new("Part")
- Part1 = Instance.new("Part")
- Script2 = Instance.new("Script")
- Part0.Name = "Baseplate"
- Part0.Parent = mas
- Part0.BrickColor = BrickColor.new("Dark stone grey")
- Part0.Anchored = true
- Part0.Locked = true
- Part0.FormFactor = Enum.FormFactor.Symmetric
- Part0.Size = Vector3.new(512, 20, 512)
- Part0.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part0.Position = Vector3.new(0, -10, 0)
- Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Name = "Exploding Brick"
- Part1.Parent = mas
- Part1.BrickColor = BrickColor.new("Bright red")
- Part1.Transparency = 1
- Part1.Rotation = Vector3.new(0, -0.0199999996, 0)
- Part1.Anchored = true
- Part1.CanCollide = false
- Part1.Size = Vector3.new(527.300049, 1.20000005, 545.200256)
- Part1.CFrame = CFrame.new(-1.47791338, 0.600000024, -0.388542771, 1, 0, -0.000282917696, -1.16415322e-10, 1, -1.16415322e-10, 0.000282917696, -5.82076609e-11, 0.99999994)
- Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part1.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Part1.Position = Vector3.new(-1.47791338, 0.600000024, -0.388542771)
- Part1.Orientation = Vector3.new(0, -0.0199999996, 0)
- Part1.Color = Color3.new(0.768628, 0.156863, 0.109804)
- Script2.Parent = Part1
- table.insert(cors,sandbox(Script2,function()
- o = script.Parent
- function onTouched(hit)
- local x = Instance.new("Explosion")
- x.BlastRadius = 3011
- x.BlastPressure = 10000000
- x.Position = script.Parent.Position
- x.Parent = script.Parent
- end
- connection = o.Touched:connect(onTouched)
- 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