Possible to make dangerous traps for players?

I am looking to create/locate a script that would allow me to place down Booby traps in the maps I make that players can trigger. Does anyone have any ideas how I could go about scripting this? Or if there is already one that exists?