scripting a killbrick
A basic killbrick script damages touched characters with health, but it must be run as a server script.
- A basic touch script checks if the hit object or its parent has a Health component and deals damage equal to MaxHealth
- Running the killbrick script on the client depletes health in studio without actually killing the character
- Switching the script to run on the server resolves the issue and kills the character as intended


