No focus on my game

Ok, good to know, that’s a step in the right direction, because if it’s doing neither it may not be running at all.

Where is this code located?

Is it possibly on something that isn’t being spawned?

Try throwing in a printstring or two to confirm that this code is running at all!