Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can i add an accessoy (backpack) to the character once he enters the game?

So, juts like the title says i am trying to clone an accessory to the player's character once he enters the game with a server script


backpack = game.Workspace.StarterBackPack

game.Players.PlayerAdded:Connect(function(player)
	backpack:Clone().Parent = player.Character
end)

1 answer

✓ Accepted answer

flip the mesh if it's backwards

backpack = game.Workspace.Accessory

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:connect(function(character)
		local torso = character:WaitForChild("Torso") --use UpperTorso if r15
		local clone = backpack:Clone()
		clone.Parent = character
	
		local weld = Instance.new("WeldConstraint")
		weld.Parent = workspace
		weld.Part0 = clone.Part
		weld.Part1 = torso
		clone.Part.CFrame = torso.CFrame

	end)
end)

9 comments

0

umm no it is an accessory

0

which has a part in t

0

then change the parts cframe not the backpacks

0

wait how arent you supposed to put the accessory in the players character?

0

oh nvm THANK YOU

0

yeah but that answer isn't going to work. my bad. i'll get a working answer in a sec.

0

i accidently accepted it ol

0

edit

0

You're going to have to use UpperTorso instead of HRP if you're using R15 though

This discussion is preserved as it was. New answers, comments, and votes are closed.