Better Lighting Script made by ChatGPT
Key RequiredUniversal

Better Lighting Script made by ChatGPT

Universal ScriptTheOneWhoNeverLearnsTheOneWhoNeverLearns 4.3K views 1.6K executesUpdated Aug 11, 2025
0.0/ 5(2 votes)
020% Positive
Lua Script•45 lines (1673 chars)
-- 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")
print("Made by ChatGPT - AI by OpenAI - Original Idea made by Google Gemini")
print("Loaded Script! Enjoy the script and don't forget, this will only work with graphics 3-max = 10")
print("Tested in Mega Marble Run Pit")
print("Also try PShade!")
print("beta palagi ito - so remember not to forget.")

Features & Information

• 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!!!!
#betterlighing#keyless

Community Comments (1)

JacksonShowcaserJacksonShowcaserOct 21, 2025(edited)

@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.

More Scripts for Universal Scripts