This is probably very easy for someone but I ain’t good at scripting I put this in a local script but every body still sees it turn day Uploading: 59AAAE75-A9C0-405E-924D-328F101F086A.jpeg…
I think all you need to do is change it from a local script to a script.
But that would make the whole lobby see it I want it where only 1 person can
FogEnd states where the fog ends, so do you have FogStarts set?
No but it still works fine when I don’t use fog start
My bad wrong photo that was to make the fog go away when u touch it
Well I presume you have the localscript somewhere where it is able to run.
Most likely your issue is that you’re not verifying who actually touched the part, every clinet has the touched event set up for them. Right now it’ll still act as if the server changed the fog because even if 1 player touched it, there’s no verification so everyone will get the change.
What I’d recommend doing is to include an if statement that checks if the local player’s character exist and then check if the part that activated the touched event is a descendant of the character via :IsDescendantOf()
, if t hey are, change the lighting, if they aren’t, do nothing, this way the game will be able to know who touched the part and change their lighting