-
What do you want to achieve?
a part that changes the lighting settings for one player at a time -
What is the issue? Include screenshots / videos if possible!
Once the part is touched by a player, every player experiences the lighting change.
Example: (the left is supposed to be dark)
- What solutions have you tried so far?
Ive tried:
Putting the script in playerstarterscripts,
Putting the script in characterstarterscripts,
putting the script in startergui,
Using remote events (i probably messed up here),
Looking on the devforum
and making it a serverscript,
the code used
local lighting = game:GetService("Lighting")
local atmos = game.Lighting.Atmosphere
local bloom = game.lighting.Bloom
local sky = game.Lighting.Sky
local field = game.Lighting.DepthOfField
local correction = game.Lighting.ColorCorrection
block.Touched:Connect(function()
bloom.Intensity = 1
bloom.Size = 10
bloom.Threshold = 1.056
atmos.Density = 0
atmos.Color = Color3.fromRGB(168, 31, 31)
atmos.Decay = Color3.fromRGB(213, 151, 52)
atmos.Glare = 0
atmos.Haze = 0
lighting.EnvironmentDiffuseScale = 0.259
lighting.EnvironmentSpecularScale = 1
lighting.Brightness = 4
lighting.GeographicLatitude = 0
lighting.ClockTime = 15.6
lighting.Ambient = Color3.fromRGB(232, 33, 7)
lighting.OutdoorAmbient = Color3.fromRGB(131, 76, 13)
sky.SkyboxBk = "rbxassetid://653719502"
sky.SkyboxDn = "rbxassetid://653718790"
sky.SkyboxFt = "rbxassetid://653719067"
sky.SkyboxLf = "rbxassetid://653719190"
sky.SkyboxRt = "rbxassetid://653718931"
sky.SkyboxUp = "rbxassetid://653719321"
sky.SunAngularSize = 25
field.FarIntensity = 1
field.FocusDistance = 200
field.InFocusRadius = 50
field.NearIntensity = 0.016
correction.Enabled = true
end)
(i am not good at coding at all)
(im also having issues with every player experiencing FOV changes, and GUI changes
all at once)