Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2023
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | Gaming | 0 0
  1. sky = Instance.new("Sky",game:GetService("Lighting"))
  2. sky.SkyboxBk = "http://www.roblox.com/asset/?id=15038203539"
  3. sky.SkyboxFt = "http://www.roblox.com/asset/?id=15038203539"
  4. sky.SkyboxLf = "http://www.roblox.com/asset/?id=15038203539"
  5. sky.SkyboxRt = "http://www.roblox.com/asset/?id=15038203539"
  6. sky.SkyboxUp = "http://www.roblox.com/asset/?id=15038203539"
  7. -- Function to turn a BasePart into glass
  8. local function turnIntoGlass(part)
  9. part.Material = Enum.Material.Glass
  10. end
  11.  
  12. -- Get all BaseParts in the workspace
  13. local baseParts = game.Workspace:GetDescendants()
  14. for _, part in ipairs(baseParts) do
  15. if part:IsA("BasePart") then
  16. turnIntoGlass(part)
  17. end
  18. end
  19. local lighting = game:GetService("Lighting")
  20. lighting.ClockTime = 12 -- Set the ClockTime to a fixed value to remove the day cycle
  21. lighting:GetPropertyChangedSignal("ClockTime"):Connect(function()
  22. lighting.ClockTime = 12 -- Continuously reset the ClockTime to maintain a fixed value
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement