When you go to customize your character, your camera gets moved. So it may sometimes appear through walls so to counter this I was trying to toggle invisicam. But the script I have right now which is only 1 line doesnt error but it also doesnt work?
Heres the code, its a local script by the way.
game:GetService("StarterPlayer").DevCameraOcclusionMode = Enum.DevCameraOcclusionMode.Invisicam
So I dont really understand why its not working does anyone have any ideas?
Thank you for your time :)

2 comments
StarterPlayer and StarterPack and StarterGui are services which are triggered on spawn. Therefore meaning that it is triggered once. Have you tried dying in-game to test it?
Then how would I toggle it while they are alive? Its a part of Player so I could do it that way but when I do it gives me a permission error