How to i make a item Jointed into the Player's Torso

I’m trying making a button Gui that can Joint a Item into the Players torso
this is the script Btw

	local Item = game.ReplicatedStorage.EmoteItemFolder.RedCar:Clone()
	Item.Parent = game.Players.LocalPlayer.Character
	local Motor6D ="Motor6D")
	Motor6D.Parent = game.Players.LocalPlayer.Character
	Motor6D.Part1 = game.Players.LocalPlayer.Character:WaitForChild("Torso")
	Motor6D.Part0 = Item

let me know if there’s Something Wrong on the Script

I think Motor6D should be parented to a Part and not a model (character)

can a meshpart, work as well???

Incorrect. As long as the adornees of the Motor6D are both set to a physical part, it doesn’t matter what the Motor6D’s parent is.

Is this in a Script or a LocalScript? If it’s in a script, getting LocalPlayer won’t work, because LocalPlayer is only replicated on the client.

you should put it in the Script and not in the localScript

You should not be doing this on the client. Do it on the server instead and preferbly, use a weld.

No, you can’t get LocalPlayer from a server script.

@CooingPizzaboy83 if you want to get the player, just add an argument to MouseButton1Click which is player, and reference it from there instead of LocalPlayer.

1 Like