I scripted a system in which the time of day determines the lighting colorcorrection brightness (to make darker nights). The problem is, I want to use the brightness adjustment to make dark tunnels, but I would set it locally... Would a change in the value for server side result in a reset of the clients ode brightness? For example: It is noon, no 0 brightness serverside. Player enters tunnel: local brightness =-0.2 It turns night outside, serverside brightness =-0.2 It turns day outside, serverside brightness = 0, player brightness =?
The purpose of FilteringEnabled
is to stop changes to the client from replicating to the server. This means that any change with a LocalScript
with only show up for the invidiual player. A change made with a Server Script
will show for everyone.
You can use a LocalScript
with a Touched
event to make the player's brightness darker.
Here is an example
game.Workspace.TouchPart.Touched:Connect(function() local brightness = -0.2 -- make lighting dark end)
This will only make the brightness for the Player who touched TouchPart
dark.