Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you weld a model to the character?

I am trying to make a backpack but i don't know how to weld to the player

1 comment

0

Can you provide any code that you have attempted?

1 answer

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.

function Weld(Part1, Part2)
	local Weld = Instance.new("Weld")
	Weld.Part0 = Part1
	Weld.Part1 = Part2
	Weld.C1 = CFrame.new(0, 0, 0) --[[I don't know what does your Model look like, but try to weld this yourself.]]
	Weld.Parent = Part1
end
Weld(game.Players.Player.Character.Torso, game.Workspace.Jetpack.PrimaryPart)

2 comments

0

let me try this out

0

didnt work

This discussion is preserved as it was. New answers, comments, and votes are closed.