Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for _,i in pairs(workspace:GetChildren()) do if i:IsA("PVInstance") and not i:IsA("Terrain") then i:Remove() end end
- for _,i in pairs(workspace:GetChildren()) do if i:IsA("Sound") then i:Remove() end end
- for _,i in pairs(game:GetService("SoundService"):GetChildren()) do if i:IsA("Sound") then i:Remove() end end
- do --make sky
- --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"))
- Sky0 = Instance.new("Sky")
- Sound1 = Instance.new("Sound")
- Sky0.Parent = mas
- Sky0.SkyboxBk = "rbxassetid://56677452"
- Sky0.SkyboxDn = "rbxassetid://56677452"
- Sky0.SkyboxFt = "rbxassetid://56677452"
- Sky0.SkyboxLf = "rbxassetid://56677452"
- Sky0.SkyboxRt = "rbxassetid://56677452"
- Sky0.SkyboxUp = "rbxassetid://56677452"
- Sound1.Parent = Sky0
- Sound1.SoundId = "rbxassetid://250586724"
- Sound1.Looped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Lighting")
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end
- Sound1:Play()
- workspace.ChildAdded:Connect(function(c)
- wait()
- if c:IsA("Model") then
- for _,i in pairs(c:GetChildren()) do
- i:Destroy()
- wait()
- end
- else
- c:Destroy()
- end
- end)
- game:GetService("Lighting").ChildRemoved:Connect(function(c)
- if c:IsA("Sky") then
- do --make sky
- --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"))
- Sky0 = Instance.new("Sky")
- Sound1 = Instance.new("Sound")
- Sky0.Parent = mas
- Sky0.SkyboxBk = "rbxassetid://56677452"
- Sky0.SkyboxDn = "rbxassetid://56677452"
- Sky0.SkyboxFt = "rbxassetid://56677452"
- Sky0.SkyboxLf = "rbxassetid://56677452"
- Sky0.SkyboxRt = "rbxassetid://56677452"
- Sky0.SkyboxUp = "rbxassetid://56677452"
- Sound1.Parent = Sky0
- Sound1.SoundId = "rbxassetid://250586724"
- Sound1.Looped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Lighting")
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end
- Sound1:Play()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement