Drowning system for all game modes?

There used to be one on coderhire but it doesn’t seem to be there any more.

Looking to have something super basic that basically will kill a player after 5-10 seconds of being in water and ideally a message that says something like “You will die if you do not get back on land” or “You are in an illegal spot, please get out of the water.”

I had tried this:

But it did not seem to work, made a sound like I was drowning but didn’t actually do anything.

Any help would be greatly appreciated!

There’s that to get you started.

Here’s one I wrote: https://dl.dropboxusercontent.com/u/26074909/tutoring/drowning.lua.html

remove .html for .lua

I haven’t looked at it in a while; it should work though.

awesome, ill give it a try!