
KeylessUniversal

-- 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.")



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