Universal Script πŸ“Œ
4.5k Views
2.6k Executions

Better Lighting Script made by ChatGPT

Universal Script πŸ“Œ
TheOneWhoNeverLearns
TheOneWhoNeverLearns10K executions
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No 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!!!!

View Raw
-- 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")


Comments

1
Log in to join the conversation. Login
JacksonShowcaser's profile picture
JacksonShowcaser1 year ago(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.

1

Tags

More universal scripts

See all
Script hub
33.1k
298.1k
Bumped 1 hour ago
Script hub
23.6k
5.2k
Bumped 1 hour ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
195
557
Bumped 2 hours ago
Universal Script πŸ“Œ
1.6k
30.3k
Bumped 2 hours ago
Script hub
4.1M
558.5k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #3

Verified script badgeOverflow 35 Supported Games

Script hub
5.5k
28.9k
Bumped 3 hours ago
Key System
Script hub
14.0k
28.5k
Bumped 4 hours ago