local g=getParts(boat)local h,l=GetCenterOfMass(g)local V=Instance.new("\080\097\114\116")V.Anchored=true V.Name="\067\101\110\116\101\114\080\097\114\116"V.CanCollide=false V.Archivable=false V.Size=Vector3.new()V.Transparency=1 V.CFrame=GetRotationInXZPlane(seat.CFrame-seat.CFrame.p)+h V.Parent=boat local G=Instance.new("\065\116\116\097\099\104\109\101\110\116")G.CFrame=V.CFrame G.Position=Vector3.new()G.Parent=V local d=Instance.new("\086\101\099\116\111\114\070\111\114\099\101")d.ApplyAtCenterOfMass=true d.Attachment0=G d.Force=Vector3.new()d.RelativeTo=Enum.ActuatorRelativeTo.Attachment0 d.Parent=V local k=Instance.new("\084\111\114\113\117\101")k.RelativeTo=Enum.ActuatorRelativeTo.Attachment0 k.Attachment0=G k.Torque=Vector3.new()k.Parent=V l=l+V:GetMass()
--Create attachments and contraints for function
local parts = getParts(boat)
local centerOfMass, totalMass = GetCenterOfMass(parts)

local center = Instance.new("Part")
center.Anchored = true
center.Name = "CenterPart"
center.CanCollide = false
center.Archivable = false
center.Size = Vector3.new()
center.Transparency = 1
center.CFrame = GetRotationInXZPlane(seat.CFrame - seat.CFrame.p) + centerOfMass
center.Parent = boat

local attachment = Instance.new("Attachment")
attachment.CFrame = center.CFrame
attachment.Position = Vector3.new()
attachment.Parent = center

local vectorForce = Instance.new("VectorForce")
vectorForce.ApplyAtCenterOfMass = true
vectorForce.Attachment0 = attachment
vectorForce.Force = Vector3.new()
vectorForce.RelativeTo = Enum.ActuatorRelativeTo.Attachment0
vectorForce.Parent = center

local torque = Instance.new("Torque")
torque.RelativeTo = Enum.ActuatorRelativeTo.Attachment0
torque.Attachment0 = attachment
torque.Torque = Vector3.new()
torque.Parent = center

totalMass = totalMass + center:GetMass()
