Any way to weld things to players more easily?

Hello, I would like to know if there’s any way to weld things to players more easily as I’m planning to weld more objects to the player in the future.

image

This is a sword I welded to the player. The thing is, I had to constantly exit and enter testing to change the script so the sword’s position would be correct. it’s a lot of trial and error and I’m wondering if there’s a way to avoid that. Thank you.

I’d preferably like to avoid Plug-ins but if any work don’t feel afraid to share them

1 Like

One way is to use a “proxy”, by basically positioning an invisible part at the UpperTorso/Torso position (duplicate the Torso, set the size to (.2,.2,.2)). Set your sword model’s PrimaryPart to this invisible part (the red part below) and position the sword however you want.

Make sure to first weld your Sword to this PrimaryPart (red part) manually, then in a script simply weld the PrimaryPart to the UpperTorso/Torso of the character.

local model = game.ReplicatedStorage.Sword:Clone()
model:PivotTo(character.UpperTorso.CFrame)
model.Parent = character


local weld = Instance.new("WeldConstraint")
weld.Part0 = model.PrimaryPart
weld.Part1 = character.UpperTorso
weld.Parent = model.PrimaryPart
2 Likes

That’s actually really smart, thanks! I’ll try implementing this soon

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.