How do I weld backpacks to the player? I see games like bee swarm simulator do this and I find it near impossible to do it.
1 Like
Usually you would weld the model/part by using the Weld.C0 property to the character.
2 Likes
What you can do instead of using Welds (since they are legacy) is use a Motor6D to connect the torso and backpack.
On CharacterAdded
, I did the following:
local backpack = ServerStorage.Backpack:Clone()
backpack.CFrame = character.HumanoidRootPart.CFrame*CFrame.Angles(0, math.pi, 0)
backpack.Parent = character
local motor_6d = Instance.new("Motor6D")
motor_6d.Name = "Backpack to UpperTorso"
motor_6d.Part0 = character:WaitForChild("UpperTorso")
motor_6d.Part1 = backpack
motor_6d.Parent = motor_6d.Part0
motor_6d.C1 = motor_6d.C1*CFrame.Angles(0, math.pi, 0)*CFrame.new(0, 0, -character.UpperTorso.Size.Z)
The reason I rotated the backpack 180 degrees is because the front face of the free model backpack I got was facing backwards. So I just rotated it 180 degrees so the back would face forwards. You likely won’t need it if you don’t have that same issue
3 Likes
Just curious, did you rotate it using the script or manually?
Using the script.