MY PROBLEM: I am welding players to a plane that another player controls my problem is when the player is welded the mechanics of the plane mess up and make it super jittery and it bugs out somnetimes flings it in random directions. I am using weldconstraint right now but I was curious if there was more effective ways.
I tried welding the player to the center of the object and it is still messed up.
Maybe it has to do with mass or position of player idk im lost
function hookUp()
if not preChecking and not hookedup then
hookedup = true
for i, v in pairs(jumpers.hooked:GetChildren()) do
if v.Value then
local numJumper = i
local ori = jumpParts:FindFirstChild(numJumper).Orientation
v.Value.Humanoid.WalkSpeed = 0
v.Value.Humanoid.JumpPower = 0
v.Value.Humanoid.Jump = true
v.Value.HumanoidRootPart:PivotTo(jumpParts:FindFirstChild(numJumper).CFrame)
v.Value.HumanoidRootPart.Orientation = ori
local weld = Instance.new("WeldConstraint")
weld.Name = "HOOKWELD"
weld.Part0 = v.Value.HumanoidRootPart
weld.Part1 = jumpParts:FindFirstChild(numJumper)
weld.Parent = v.Value.HumanoidRootPart
animate("134081306757439", v.Value.Humanoid)
end
end
else
print("PRE CHECK IN PROGRESS")
end
end```
This is might be a network ownership problem. Network ownership determines whether a specific player or the server gets the final say in the physics of something.
Characters are owned by their client (ie player). When characters sit in a driver seat, the player gets ownership of the assembly the seat is connected to.
Do you who has ownership of the plane? That might help narrow down the problem. If the server or a player not controlling the plane has ownership the physics can be not very responsive/lag and be a little choppy as the ping varies.
EDIT: (Most likely)
The problem could also be that the character controller is messing with the physics (since it thinks anything connected to the character is part of the character). Make sure to set the welded character to Humanoid.Sit = true or Humanoid.PlatformStand = true before welding to disable the character controller.
If the problem is from the mass of the character (I doubt it is though), you can use Part.Massless = true to make it so all of the parts of the welded character aren’t considered in the physics of the plane assembly (make sure to reset Massless though for the character physics to be unchanged after).