Swimming/Diving system?

How do i create a swimming and diving system?

My first thought was to have an invisible plain that stops the player from sinking all the way to the bottom, having them partially submerged but how do you make that object a ghost when you press the dive button?

check in the “Resources” section the threads from Professor Monster!
You’ll learn a lot!

Try using constraints with the logic editor.