Weld to R15 torso instead of head

How do I make this code weld the webbing model in ReplicatedStorage to the player’s UpperTorso instead of their head? I’ve always had this problem when using accesories and textured meshes for the player’s characters, and I don’t really know how to fix that. Any help is appreciated. (

Code (not mine, is free model):

local rs = game:GetService("ReplicatedStorage")

local function playerAdded(player)
	player.CharacterAdded:Connect(function(char)
		local hat = nil
		if player.Team.Name == "DOI" then
			hat = rs:WaitForChild("Webbing").LBWI:Clone()--hat here
		elseif player.Team.Name == "ERF" then
			hat = rs:WaitForChild("Webbing").LBWI:Clone()--hat here
		end
		local hum = char:WaitForChild("Humanoid")
		hum:AddAccessory(hat)	
	end)
end

game.Players.PlayerAdded:Connect(playerAdded)
1 Like

You can just use weld constraints

local weld = Instance.new("WeldConstraint")
weld.Part0 = hat
weld.Part1 = char.UpperTorso
weld.Parent = hat
2 Likes

it still attachs to the head instead of the torso, and I don’t know how to set up the basepart

2 Likes

That was assuming “hat” is a part. What actually is it? (e.g. a model, part, etc)

1 Like

e
its all in an accesory, the webbing model is welded to the accesory and handle and to itself. The webbing model is connected to the Handle

local weld = Instance.new("WeldConstraint")
weld.Part0 = hat.Handle
weld.Part1 = char.UpperTorso
weld.Parent = hat
2 Likes