I am trying to make a backpack but i don't know how to weld to the player
If you have a part that holds, or is in the middle of the jetpack, make that PrimaryPart. It can be Invisible, if you don't have 1 yet, weld a new part in the middle of the jetpack, make it primary and make it Invisible.
Then add Weld To That Part and The Player's Torso.
1 | function Weld(Part 1 , Part 2 ) |
2 | local Weld = Instance.new( "Weld" ) |
3 | Weld.Part 0 = Part 1 |
4 | Weld.Part 1 = Part 2 |
5 | Weld.C 1 = CFrame.new( 0 , 0 , 0 ) --[[I don't know what does your Model look like, but try to weld this yourself.]] |
6 | Weld.Parent = Part 1 |
7 | end |
8 | Weld(game.Players.Player.Character.Torso, game.Workspace.Jetpack.PrimaryPart) |