So basically im trying to make it so when you walk through the part, it changes the lighting settings locally for the person who walked through it. I know the script works because I tried it inside of a regular script, but it does not work inside of a local script nor does it put out any errors. Any help is appreciated!!
function onTouched(part) game.Lighting.ClockTime = 20 game.Lighting.FogEnd = 100 game.Lighting.FogColor = Color3.new(82/255,82/255,82/255) print("Done") end script.Parent.Touched:Connect(onTouched)