The issue is the event you subscribed IfOnWhenCheckedEvent doesn’t take in a player agent. I think there is a function CheckState that accepts an agent that you can query to see if the player has that switch off or on but you have to setup the switch to use individual player states in the device settings. I’m not sure I follow 100% what you are trying to do but if I understand you can do Signal Remote Event from signal remote manager → Your freeze player function → check the switch is on for the player → then find the closest player and handle freezing them. The signal remote manager has primary and secondary events you can subscribe to that will return the player agent which you can subscribe to that freeze function.