i'm doing a game where you can use the CCTV cameras. I wanted to put this feature where if i switch to another camera it's gonna do a static effect and i was doing this by putting a variable that is gonna change depending in what camera i was using. However, it didn't work well. i tried to find a solution and i discovered that my if statements work on normal scripts but on local ones they don't. Can someone explain me this problem and how to solve it? Thank you.
v = 1
if v == 1 then
print("bruh")
end

5 comments
Show us the script lol, they do work on local scripts
Also, where is the local script located? There are some services on wich local scripts don't run.
it's on the workspace
Show us the script
LocalScripts don't run in workspace, put them on StarterGui or StarterPlayerScripts.