How to make a terrain boat like jailbreak

How would you make a boat like the ones in jailbreak? For example the jet ski. How would you make it so it floats on water and actually bobs on the waves a little bit?

I do not know where to start on this one, so any help is much appreciated.

EDIT : All I’m trying to figure out is how you would make a model interact with terrain water in a way that it floats naturually and has a few effects here and there like bobbing and tilting back a bit when you go forward and forward when you go back. Also how would you add controls? What would be the best way to do this? And would you cater for mobile devices as well.

1 Like

I don’t know how to make the water bob but to make it float you could just add an invisible wall under the boat.

1 Like

not sure what you mean by invisible wall.

Did he meant a wall that’s a part with transparency set to 1?

Yes, I did. To make it detect you touching the water you could add a big box around the water and turn CanCollide off and set Transparency to 1. In the script you could then put:

script.Parent.Touched:Connect(function(touch)
if touch.Name == “Boat” then
workspace.InvisibleWall.Position = ---- Position of the water
end
end)

1 Like

Lets say there were 20 boats at once in the water, do you think touch event would be reliable?

Edit: Also seems unreliable as too many touch events firing at once can leader to server lag.

1 Like