Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function createCustomSkybox()
- local skybox = Instance.new("Sky")
- local textureId = "rbxassetid://79763022004094"
- skybox.SkyboxBk = textureId
- skybox.SkyboxDn = textureId
- skybox.SkyboxFt = textureId
- skybox.SkyboxLf = textureId
- skybox.SkyboxRt = textureId
- skybox.SkyboxUp = textureId
- -- Make it extra visible
- skybox.CelestialBodiesShown = false
- skybox.StarCount = 0
- -- Remove old skybox if it exists
- local lighting = game:GetService("Lighting")
- local existingSky = lighting:FindFirstChildOfClass("Sky")
- if existingSky then
- existingSky:Destroy()
- end
- skybox.Parent = lighting
- end
- createCustomSkybox()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement