I've looked through all ScriptingHelpers pages and couldn't find anything answering the question.
What I need is a script to stop the player from looking through the part in shift lock mode. Pretty much it, I have no clue where to start.
https://gyazo.com/632e883a102c0f4b5a3f9d33349b99d9
The best way is probably to disable Shiftlock mode itself. A couple other ways may be add more layers of walls. Other then that this is a Roblox issue. To disable Shift lock:
Go to StarterPlayer
In StarterPlayer
look for the property called EnabledMouseLockOption
and change the value (it's a bool true or false)
Hopefully this helped you.