Objects are not parenting to UpperTorso


Hello! I have noticed an error/bug and idk how to avoid it. It gives me this error in my output. Here is the script to parent it to my char.

game.Players.PlayerAdded:Connect(function(plr)            
    plr.CharacterAdded:Connect(function(char)

        local M6D = Instance.new("Motor6D")
        M6D.Name = "ToolGrip"
        M6D.Parent = char.UpperTorso
    end)
end)```

Try this code out and see if it fixes anything:

local PS = game:GetService("Players")

PS.PlayerAdded:Connect(function(player: Player)
	player.CharacterAdded:Connect(function(char: Model)
		local upperTorso = char:FindFirstChild("UpperTorso")
		
		if upperTorso then
			local motor6D = Instance.new("Motor6D") 
			motor6D.Name = "ToolGrip"
			motor6D.Parent = upperTorso
		else
			warn("no upper torso found")
		end
	end)
end)

Alr Ill try this. thanks
```3 O chars ````

Nothing came out of it…

Where are you placing the script?

You likely need to wait for the ‘Motor6D’ instance to replicate.

I am placing it inside of sss.

  • 3 O chars

I can try this, but I have low expectations since even in the game I can’t add items to the UpperTorso