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"))
- Part0 = Instance.new("Part")
- Script1 = Instance.new("Script")
- Part0.Name = "DeletePart"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(-109, 0.5, 173, 1.00000012, 0, 0, 0, 1, 1.69406589e-21, 0, 1.69406589e-21, 1.00000012)
- Part0.Position = Vector3.new(-109, 0.5, 173)
- Part0.Color = Color3.new(0.768627, 0.156863, 0.109804)
- Part0.Size = Vector3.new(4, 1, 2)
- Part0.BrickColor = BrickColor.new("Bright red")
- Part0.brickColor = BrickColor.new("Bright red")
- Script1.Parent = Part0
- table.insert(cors,sandbox(Script1,function()
- function onTouched(hit)
- hit:remove()
- end
- connection = script.Parent.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