I was working on a project of mine and stumbled into a annoying situation, my script wasn’t working. I’ve tried putting this in both ServerScriptService and StarterPlayerScripts.
How did you somehow put a ColorCorrection into the game itself? You just need to add Lighting after game. and you should be fine, or better, reference the Services directly
Code below is recommended to be in a localscript inside of StarterCharacterScripts
local Lighting = game:GetService("Lighting")
local Players = game:GetService("Players")
local humanoid = script.Parent:WaitForChild("Humanoid")
local colorCorrection = Lighting.ColorCorrection
colorCorrection.Enabled = false
humanoid.Died:Connect(function()
colorCorrection.Enabled = true
wait(Players.RespawnTime - 0.1)
colorCorrection.Enabled = false
end)