I'm trying to make a script that welds a part to the player, the part that I'm trying to weld has scripts and other things inside of it. In output I am getting the error below, and I do not know why it is happening. Any help?
Error: attempt to index nil with 'Torso'
Script:
game.Players.PlayerAdded:connect(function(plr)
local p = game.ReplicatedStorage:FindFirstChild("Character2"):clone()
p.Parent = plr.Character
p.CFrame = CFrame.new(plr.Character.Torso.Position)
p.Anchored = false
local Y = Instance.new("Weld")
Y.Part0 = plr.Character.Torso
Y.Part1 = p
Y.Parent = Y.Part0
plr.CharacterAdded:connect(function(char)
end)
end)

1 comment
Do the player have R6 rig?