Delete this post please

delete this post pleasedelete this post please
delete this post please

I think I know where he got his whole script.
A LITERAL TUTORIAL VIDEO 4 YEARS AGO

Um, before I even try to help, it would be beneficial to me and others reading this if the code wasn’t all broken up. But it seems as though this code is not original, no wonder you guys don’t understand it.

But yeah, please format it so it doesn’t look like a turkey sandwich.

go to the link I put up it has everything you need to know.

The problem is your not checking if the head is underwater or not over and over again.

So what your saying is you copied a script from your friend who copied a outdated YouTube tutorial and because it didn’t work you came here to try and fix it even though there are underwater scripts that you can easily implement a drowning feature into?

Why not use this and have your friend add some code that hurts you after some time?
A Underwater Script
Oh wait it already has one.

The Scripting Support category is intended for receiving help on things you created. If it’s not of your own creation, there is very little to go from because you don’t even understand the concept behind how the script works, so you probably won’t understand the fixes either.

You need to apply basic debugging to try and isolate the issue, because posting your entire system and asking for fixes rather than directions is inappropriate use of this category. We don’t even have a given place to look because there’s just a mound of pasted code and no apparent effort from your end to attempt to resolve the issue you’re facing.

There are various resources in and around the toolbox that you can reference for help fixing this kind of a system as well, or modify such that it can include the features you’re looking for. Keep in mind that this is not a do-my-work category.

Refer to our category guidelines for more information on how to properly use this category.

As for the formatting debacle, no you haven’t formatted it because there are still parts of the script outside of a code block. When posting code to the DevForum, please include your code within a code block so it’s easier to read. You can do so with three backticks above and below your code.

```lua
– Code
```

Selling and trading direct or proxy access to the Developer Forum is forbidden. You may not make posts on behalf of other users unless explicitly allowed by that category.
Official Rules of the Roblox Developer Forum

Your friend should be posting this, not you.

Show that attempt

Use this to learn scripting

Thanks for the link.
It was quite useful and I appreciate the “show that attempt” bit.