Apply ingame script to an object in unity

What’s your troubleshooting question?

If you’re asking what it does, that’s the kill barrier.