Player takes damage when touching the part.
The Roblox API Documentation is your best friend for finding parameters and return values [38]. robloxscrpts
Keep your scripts in ServerScriptService to prevent exploiters from accessing them directly [13, 21]. Player takes damage when touching the part
It's much more reliable and runs at the engine's heartbeat frequency. robloxscrpts