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)
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)