local q=getParts(boat)local n,g=GetCenterOfMass(q)local M=Instance.new("\080\097\114\116")M.Anchored=true M.Name="\067\101\110\116\101\114\080\097\114\116"M.CanCollide=false M.Archivable=false M.Size=Vector3.new()M.Transparency=1 M.CFrame=GetRotationInXZPlane(seat.CFrame-seat.CFrame.p)+n M.Parent=boat local N=Instance.new("\065\116\116\097\099\104\109\101\110\116")N.CFrame=M.CFrame N.Position=Vector3.new()N.Parent=M local d=Instance.new("\086\101\099\116\111\114\070\111\114\099\101")d.ApplyAtCenterOfMass=true d.Attachment0=N d.Force=Vector3.new()d.RelativeTo=Enum.ActuatorRelativeTo.Attachment0 d.Parent=M local x=Instance.new("\084\111\114\113\117\101")x.RelativeTo=Enum.ActuatorRelativeTo.Attachment0 x.Attachment0=N x.Torque=Vector3.new()x.Parent=M g=g+M:GetMass()

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()

