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

How do I make players spawn with Accesories?

I tried to script it like this, but it didn't work:

local Player = game.Players.LocalPlayer local Accesory = script.Parent local Character = Player.Character

Accesory.Parent = Character

1 answer

✓ Accepted answer

Check when a player joined, and clone the model to their character. Do something like this:

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		local Accesory = --put the accesory here, I recommend having it on ServerStorage and 				 
                                            cloning it from there
		Accesory.Parent = char
	end)
end)

This functions check when a player joined, and after when a character spawned (Works for respawn) And it clones the accesory into the character.

This haves to be a Server Script inside of ServerScriptService ; And put the accesory inside of server storage. In the local variable, do this: local Accesory = game:GetService("ServerStorage").AccesoryName

Hope I helped. If it works accept my answer please ;)

7 comments

0

Thank you so much! It worked.

0

then can you accept my answer please?

0

How do I accept? I'm new.

0

There should be a button around my answer. Try to search it because accepting my asnwer really helps me.

0

Oh, I accepted it.

0

Thank you!

0

You're welcome!

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