How do I make a boat not glitch out on land?

How do I make a boat not glitch out on land? My boats have a body position that go to a certain Y axis but sometimes can glitch out and go on land how would I go about fixing this?

Can you please elaborate on what you mean? And send videos , images If possible

You can try this video! It stops the boat if the boat detects land:

Use collision service I guess (

Are you working with “Terrain” or just regular parts?