I am making a script that activates night vision, and for the time being I had it set up for me so I could test it out. Now that I am done and finished, how do I make it so it looks for the local player instead of me?
script.Parent.MouseButton1Down:connect(function(click) if script.Parent.Parent.Parent.vision.Visible == true then game.Workspace.ReeseTP.Face.NVG5On.Light.Enabled = false elseif script.Parent.Parent.Parent.vision.Visible == false then game.Workspace.ReeseTP.Face.NVG5On.Light.Enabled = true end end)