
4.5k Views
2.2k Executions
Better Lighting Script made by ChatGPT
Universal Script š
TheOneWhoNeverLearns10K executions
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
⢠Adds that lighting effect from like the mimic tests and forsaken. ⢠This works on any game ⢠Supports Low-End phones (WARNING: IF YOU EXECUTE IT ON 10 QUALITY ON MOBILE PERFORMANCE GETS KNOCKED) ⢠Supports High-end phones ⢠PC SUPPORTED! YAY!!!!
-- Shadow Priority Lighting Fix (Less Bright Version)
local Lighting = game:GetService("Lighting")
-- Core lighting settings
Lighting.Technology = Enum.Technology.Future
Lighting.GlobalShadows = true
Lighting.ShadowSoftness = 0.1 -- crisp edges
Lighting.Brightness = 2 -- normal daylight
Lighting.EnvironmentDiffuseScale = 0.8
Lighting.EnvironmentSpecularScale = 1
Lighting.ClockTime = 14
Lighting.ExposureCompensation = 0
Lighting.FogEnd = 100000
-- Force shadows for every light
for _, light in ipairs(workspace:GetDescendants()) do
if light:IsA("PointLight") or light:IsA("SpotLight") or light:IsA("SurfaceLight") then
light.Shadows = true
light.Brightness = math.min(light.Brightness * 1.2, 10) -- small boost only
light.Range = light.Range + 10 -- extend so shadows start closer
light.ShadowSoftness = 0.2 -- sharpened
end
end
-- Force sun/moon shadows even when camera is near object
Lighting.EnvironmentDiffuseScale = 1
Lighting.EnvironmentSpecularScale = 1
-- Try to prevent the "shadow gap" near small objects
for _, obj in ipairs(workspace:GetDescendants()) do
if obj:IsA("BasePart") then
obj.CastShadow = true
obj.Reflectance = math.min(obj.Reflectance, 0.2)
if obj.Size.Magnitude < 5 then
obj.Size = obj.Size + Vector3.new(0.05, 0.05, 0.05) -- tiny padding to shadow mesh
end
end
end
print("Shadow fix applied - brightness reduced")









@toblade825 Bro protect your script before some skid takes it. I had my stuff taken from me recently and I just dont want it to happen to you or anyone else.