Advertisement
Paulo87

Texture idk

Aug 4th, 2024 (edited)
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.13 KB | None | 0 0
  1. local Lighting = game:GetService("Lighting")
  2.  
  3. local Sky = Instance.new("Sky")
  4. Sky.Parent = Lighting
  5. Sky.StarCount = 3000
  6. Sky.MoonTextureId = "rbxassetid://9013498700"
  7. Sky.SunTextureId = "rbxassetid://184785902"
  8. Lighting.TimeOfDay = "00:00:00"
  9. Lighting.Brightness = 1.5
  10. Lighting.Ambient = Color3.fromRGB(127, 127, 127)
  11. Lighting.OutdoorAmbient = Color3.fromRGB(127, 127, 127)
  12. Lighting.FogEnd = 100000
  13. Lighting.FogStart = 0
  14.  
  15. local ColorCorrection = Instance.new("ColorCorrectionEffect")
  16. ColorCorrection.Parent = Lighting
  17. ColorCorrection.Brightness = 0.2
  18. ColorCorrection.Contrast = 0.2
  19. ColorCorrection.Saturation = 0.2
  20.  
  21. local YellowTintCorrection = Instance.new("ColorCorrectionEffect")
  22. YellowTintCorrection.Parent = game.Lighting
  23. YellowTintCorrection.TintColor = Color3.fromRGB(255, 235, 189)
  24. YellowTintCorrection.Saturation = 0.4
  25. YellowTintCorrection.Contrast = 0.2
  26.  
  27. local function ApplyMaterialAndColor(obj)
  28.     if obj:IsA("BasePart") then
  29.         obj.Material = Enum.Material.DiamondPlate
  30.         obj.Reflectance = 0.3
  31.         local currentColor = obj.Color
  32.         obj.Color = Color3.new(currentColor.r * 0.85, currentColor.g * 0.85, currentColor.b * 0.85)
  33.     end
  34. end
  35.  
  36. for _, obj in pairs(workspace:GetDescendants()) do
  37.     ApplyMaterialAndColor(obj)
  38. end
  39.  
  40. workspace.DescendantAdded:Connect(function(obj)
  41.     wait()
  42.     ApplyMaterialAndColor(obj)
  43. end)
  44.  
  45. Lighting.GlobalShadows = false
  46. Lighting.EnvironmentDiffuseScale = 0.5
  47. Lighting.EnvironmentSpecularScale = 0.5
  48.  
  49. for _, obj in pairs(workspace:GetDescendants()) do
  50.     if obj:IsA("BasePart") then
  51.         obj.CastShadow = false
  52.     end
  53. end
  54.  
  55. workspace.DescendantAdded:Connect(function(obj)
  56.     if obj:IsA("BasePart") then
  57.         obj.CastShadow = false
  58.     end
  59. end)
  60.  
  61. Lighting:GetPropertyChangedSignal("FogEnd"):Connect(function()
  62.     Lighting.FogEnd = 100000
  63. end)
  64.  
  65. for _,v in ipairs(Lighting:GetDescendants()) do
  66.     if v:IsA("Atmosphere") then
  67.         v.Density = 0
  68.         v:GetPropertyChangedSignal("Density"):Connect(function()
  69.             v.Density = 0
  70.         end)
  71.     end
  72. end
  73.  
  74. while true do
  75.     Lighting.TimeOfDay = "00:00:00"
  76.     wait(1)
  77. end
  78.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement