Advertisement
Smartdumgood

Skybox changer

Feb 7th, 2025
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. local function createCustomSkybox()
  2. local skybox = Instance.new("Sky")
  3. local textureId = "rbxassetid://79763022004094"
  4.  
  5. skybox.SkyboxBk = textureId
  6. skybox.SkyboxDn = textureId
  7. skybox.SkyboxFt = textureId
  8. skybox.SkyboxLf = textureId
  9. skybox.SkyboxRt = textureId
  10. skybox.SkyboxUp = textureId
  11.  
  12. -- Make it extra visible
  13. skybox.CelestialBodiesShown = false
  14. skybox.StarCount = 0
  15.  
  16. -- Remove old skybox if it exists
  17. local lighting = game:GetService("Lighting")
  18. local existingSky = lighting:FindFirstChildOfClass("Sky")
  19. if existingSky then
  20. existingSky:Destroy()
  21. end
  22.  
  23. skybox.Parent = lighting
  24. end
  25.  
  26. createCustomSkybox()
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement