I am trying to have the lighting changed locally for each player, FogEnd is working fine but when I test the game the Ambient goes to 51000, 51000, 51000. What am I doing wrong? (Note: the value of Ambient is 200)
Lightining = game.Lighting
Ambient = Lightining.Ambient
FogEnd = Lightining.FogEnd
ReplicatedStorage = game.ReplicatedStorage
LightingFolder = ReplicatedStorage.Lighting
while true do
wait()
while game.ReplicatedStorage.StateTag.Value == 'Start' and game.Players.LocalPlayer.Character:FindFirstChild('MatchTag') do
wait()
game.Lighting.Ambient = Color3.new(script.Ambient.Value,script.Ambient.Value,script.Ambient.Value)
game.Lighting.FogEnd = script.FogEnd.Value
end
game.Lighting.Ambient = Color3.new(150,150,150)
game.Lighting.FogEnd = 1000
end
