Boat tilts when welded

Ships - Roblox Studio 9_13_2022 7_13_54 PM
I’m making a ship drivable, and now it is. I just want it to sail like a normal ship.

Every time I start the game the whole ship tilts. I deleted the weld script and it no longer tilted, but I need the script to let the boat move, and it would take way too long to weld every part manually.

I tried some things like checking for invisible parts or unions sticking out but just can’t figure it out. The boat moves perfectly fine, but it’s tilted. I also deleted anything under it like the water, but it didn’t change anything. Help would be greatly appreciated!

2 Likes

Hi, try using an anchor script instead, like this. This is an example.

game.Workspace.PARTNAME.Anchored = true
1 Like

But doesn’t that make the ship unable to move?

1 Like

try creating one big part to act like the weight, then everything else massless, try and keep this part near the center of the boat (can just set it to the position of the boat model)

1 Like

You know those model cars you get from the tool box, they work if they are anchored. Also you may just be able to anchor the boat without script. Its worth a try.

1 Like

Ah it didn’t work, I didn’t know that the cars came anchored, that’s interesting. Maybe it has to do with the wheels. Maybe I could add invisible wheels to the boat, worth a try… Thanks you so much for your time and thought!

1 Like

That didn’t work, although it seems like a really good solution. I think it may be a script problem because while I’ve tested it I’ve rotated and moved the ship around with the tools, but it just returns to its tilted angle and origin point.

1 Like

Could you share an RBXM of the model so I can take a look?

2 Likes

Sure, I just sent it to you. The driver’s seat is sideways because I forgot to rotate it.

Does the Boat Model have a PrimaryPart? If not you can select the ship in game with the Move tool to see how the axes are placed on the model. Typically a Model will be oriented by the last Part that’s chosen.
You also haven’t mentioned how the ship is moved. CFrames? Lerping? Animation? Tweening? BodyMovers?

That’s a good idea to use invisible wheels. Also I do suggest you can try using the chassis scripts to see if they would work!

Sorry, this is only my second dev forum post so I didn’t know everything I should’ve included. It uses BodyVelocity, BodyGyro, and BodyPosition. I deleted all of those during a test though and it still tilted. I set a PrimaryPart in the middle of the ship and it still tipped too. I’m stumped.

The BodyGyro can cause this, depending on its force and which part of the boat it is parented to.

I’ve deleted BodyGyro and all the other BodyMovers but it has still glitched, so I don’t think it’s that. I also tried plugin welders and those tilted the ship too.

It may be a long-shot, but when you initialise your game, is the boat’s bottom surface in contact with the water?

It could be as simple as there’s a weld constraint existing between the two and that you need to position the boat above the water before starting your game in order to be able to steer it correctly.

Hope this helps!

I tried deleted the baseplate and water under it, but of course it still decided to tilt. I also raised it with nothing under it and it froze in mid-air, at the same tilted angle. Thanks though!

Similarly, nothing in the boat is anchored, is it?

No, and I checked the children of the boat and the children’s children and none of them were anchored. But, the weld script does need the model to be anchored to work anyways so I tried anchored and non-anchored; both times it tilted. I also checked for any small parts that might’ve around it.

I use a welding plugin which allows you to weld all parts to a base part. I’m unable to find it at the moment, but when I can log onto studio I’ll link it here in case that might be a possible fix!

Ok, thanks so much! I have tried a plugin that is similiar to that, but it wasn’t made for welding so we’ll see how this works!