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(Enum,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 = "a"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(-7.88313293, 61.6600494, 3.97468567, 0, -1, 5.06639481e-07, 0, 5.06639481e-07, 1, -1, 2.56683563e-13, 0)
- Part0.Orientation = Vector3.new(-90, 90, 0)
- Part0.Position = Vector3.new(-7.88313293, 61.6600494, 3.97468567)
- Part0.Rotation = Vector3.new(-90, 0, 90)
- Part0.Color = Color3.new(0.298039, 1, 0)
- Part0.Transparency = 1
- Part0.Size = Vector3.new(468.829742, 447.6008, 119.559792)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.BrickColor = BrickColor.new("Lime green")
- Part0.CanCollide = false
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.brickColor = BrickColor.new("Lime green")
- Script1.Parent = Part0
- table.insert(cors,sandbox(Script1,function()
- local function onTouch(hit)
- b = Instance.new("Sky")
- b.Parent = game.Lighting
- b.SkyboxBk = "http://www.roblox.com/asset/?id=60836400"
- b.SkyboxDn = "http://www.roblox.com/asset/?id=60836400"
- b.SkyboxFt = "http://www.roblox.com/asset/?id=60836400"
- b.SkyboxLf = "http://www.roblox.com/asset/?id=60836400"
- b.SkyboxRt = "http://www.roblox.com/asset/?id=60836400"
- b.SkyboxUp = "http://www.roblox.com/asset/?id=60836400"
- end
- script.Parent.Touched:connect(onTouch)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement