Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"))
- Part0 = Instance.new("Part")
- Script1 = Instance.new("Script")
- Part0.Name = "KillBrick"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(16.5281677, 0.500005007, 48.1682281, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part0.Orientation = Vector3.new(0, -90, 0)
- Part0.Position = Vector3.new(16.5281677, 0.500005007, 48.1682281)
- Part0.Rotation = Vector3.new(0, -90, 0)
- Part0.Color = Color3.new(0, 1, 0)
- Part0.Transparency = 1
- Part0.Size = Vector3.new(665, 1, 751)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.BrickColor = BrickColor.new("Lime green")
- Part0.Locked = true
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.brickColor = BrickColor.new("Lime green")
- Part0.FormFactor = Enum.FormFactor.Symmetric
- Part0.formFactor = Enum.FormFactor.Symmetric
- Script1.Name = "KillScript"
- Script1.Parent = Part0
- table.insert(cors,sandbox(Script1,function()
- script.Parent.Touched:connect(function(hit)
- if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent.Humanoid.Health = 0
- end
- end)
- script.Parent.Touched:connect(function(hit)
- if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent.Humanoid:remove()
- print("banned")
- 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