the title says it all idk if roblox changed lighting being able to be altered client side only or what but heres the script Script:
local l = game.Lighting
script.Parent.Touched:Connect(function(hit)
if game.Players:findFirstChild(hit.Parent.Name) then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
print("running")
l.Brightness = .1
l.Ambient = Color3.new(84/255, 15/255, 83/255)
l.OutdoorAmbient = Color3.new(186/255, 87/255, 206/255)
l.FogEnd = 550
l.FogStart = 100
l.FogColor = Color3.new(104/255, 30/255, 103/255)
l.ExposureCompensation = .43
print("ran")
end
end)

2 comments
no i want it to work only on the client but it doesnt but if i convert it to a serverscript it works fine
Well what's the error?