Fixing old tool, crashes other people not using it

I’m trying to fix the old layers tool, as it no longer needs a module but there’s one slight problem.

Moving props to a different layer crashes anyone near it.

No errors at all, just the player either staying still or lagily moving in the direction they were until their client crashes.

Code is here

EDIT: Also props have collision when hidden unlike the original.

Bump, would really like this fixed if possible.

For more info, the tool used to use gm_guardian.

Recode some stuff and comment some stuff out. Try to pinpoint the cause if nobody else can or wants to figure it out.