Boats with Anchored Parts can't move

I am currently reworking some boats in my game and the sails of the boats are made of multiple parts. If I put the parts on anchored, the boat won’t move if I play-test the game. If I un-anchor the parts, the sail parts will fall into the water, thus leaving the boat with no sails. If anyone knows how to make boats/cars move with anchored parts, please leave a comment. Thanks!

1 Like

You must weld it so it can move.

3 Likes

Anchored parts aren’t physically simulated, so they’re not supposed to move. You gotta weld the unanchored sails to the unanchored boat (what orlando said).

5 Likes

How do I make a weld?

(Sorry, I’m pretty new to developing.)

1 Like

No worries. Welds are used to lock two parts together. You can read a little more about them here: Weld | Documentation - Roblox Creator Hub. A generic weld script might look something like this:

local Model = path.to.model
local PrimaryPart = Model.PrimaryPart

for _, v in ipairs(Model:GetDescendants()) do
	if v:IsA("BasePart") and v ~= PrimaryPart then
		local w = Instance.new("Weld")
		w.Part0 = PrimaryPart
		w.Part1 = v
		w.C0 = PrimaryPart.CFrame:Inverse()
		w.C1 = v.CFrame:Inverse()
		w.Parent = PrimaryPart
		v.Anchored = false
	end
end

PrimaryPart.Anchored = false

This script would weld every part in a model to the model’s PrimaryPart. You should make sure that every part in the model is anchored first. The script will then weld and unanchor everything for you. Another option is to weld it manually using a plugin like RigEdit or RigEdit Lite. RigEdit Lite - Roblox

6 Likes

There are also many plugins that allow you to make weld(s) with just a click of a button!

2 Likes