Model permanent on player torso

I basically just want a simple model on the player body everytime they join or respawn (so permanent) its a model with something on the front side of the torso and backside, i thought this script would do it but it doesnt

game.Players.PlayerAdded:Connect(function(player))
	player.CharacterAdded:Connect(function(character))
		local backpack = [Your backpack]:Clone()
		backpack.Parent = character
		backpack.PrimaryPart.CFrame = character.UpperTorso.CFrame

		local weld = Instance.new("Weld")
		weld.Parent = character.UpperTorso
		weld.Part0 = character.UpperTorso
		weld.Part1 = backpack.PrimaryPart
	end)
end)
3 Likes

You can like loop to check the model is inside that player or not.

what do you mean? its not on the torso

Do you want a model to be on the torso?

yes, i want it to be stuck to the torso permanently

Just weld it to the players Torso.

how do i do that? (30 limit t)

Well you code looks fine, the main issue seems to be the name of the backpack.

It’s not actually pointing to a model.

well it actually is in game,

‘’
game.Players.PlayerAdded:Connect(function(player))

player.CharacterAdded:Connect(function(character))

local backpack = workspace.backpack:Clone()

backpack.Parent = character

backpack.PrimaryPart.CFrame = character.UpperTorso.CFrame

local weld = Instance.new(“Weld”)

weld.Parent = character.UpperTorso

weld.Part0 = character.UpperTorso

weld.Part1 = backpack.PrimaryPart

end)

end)
‘’

you must wait until the current step is finished to be sure that the character is fully established. Only then can we use the parts of the character safely.
When and where exactly should this wait be placed? Sorry I don’t know the exact reason why we should do that.

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local backpack = workspace.backpack:Clone()
		backpack.Parent = character
		--backpack.PrimaryPart.CFrame = character.UpperTorso.CFrame
		task.wait()
		local weld = Instance.new("Weld")
		weld.Part1 = backpack.PrimaryPart
		weld.Part0 = character.UpperTorso
		weld.Parent = character.UpperTorso
	end)
end)
1 Like

Im not sure either, this script spawns me at the spot of the model and also the model spawns a few studs above the player and doesnt follow me

that sounds like your model (backpack) is anchored. Make sure all parts of your model are not anchored.

I unanchored it all and now it doesnt appear at all anymore, maybe its not welded

All parts of your model must be welded. You can weld them all to the PrimaryPart using WeldConstraint from Studio.

i welded it all together and it still doesnt show up at all

Try this. Now that everything is welded, just anchor your PrimaryPart. Then we can unanchor it after cloning.

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local backpack = workspace.backpack:Clone()
		backpack.Parent = character
		backpack.PrimaryPart.Anchored = false
		--backpack.PrimaryPart.CFrame = character.UpperTorso.CFrame
		task.wait()
		local weld = Instance.new("Weld")
		weld.Part1 = backpack.PrimaryPart
		weld.Part0 = character.UpperTorso
		weld.Parent = character.UpperTorso
	end)
end)

it worked with a 2 part test model but not with the main model, i made a primary part and welded everything together tho