I created a script in a part and I scripted this:
triggername="FogTrigger2"
function onTouched(part)
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
local teleportfrom=script.Parent.Enabled.Value
if teleportfrom~=0 then
local lightning = game.Lighting
lightning.FogColor = Color3.fromRGB(193, 184, 115)
lightning.FogEnd = 100
else
print("Could not find the trigger")
end
end
end
end
script.Parent.Touched:connect(onTouched)
Now how to do it works only for Local Player? I enabled Filtered Enabled and isn't working. Thanks.

1 comment
Use a RemoteEvent that tells the client to change the lighting. The local script would do the property changes.