Universal Script šŸ“Œ
4.5k Views
2.2k 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
2.9M
1.1M
Bumped 25 seconds ago
Key System

Script hub

#10 today

CanHub V2 200 GAMES KEYLESS

Script hub
5.5M
1.0M
Bumped 45 minutes ago
Key System
Script hub
1.7M
2.2M
Bumped 1 hour ago
Key System

Script hub

#16 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
14.6k
83.0k
Bumped 1 hour ago
Key System

Script hub

Kronos New

Script hub
3.2M
753.8k
Bumped 4 hours ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script šŸ“Œ
450
1.2k
Bumped 6 hours ago
Key System
Universal Script šŸ“Œ
7.1k
142.9k
Bumped 6 hours ago