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

How can I make a player spawn with a certain hat?

How can make a player spawn with certain hat?

2 answers

Alright, so I'm going to begin by assuming you know the basics of scripting, now roblox doesn't actually let you put a hat in a player and have it magically go on, so say if the player had no hats, then it would auto apply itself to your head, however if they have 1 hat or more, than you start to encounter issues with the hat not wanting to join. So lets assume the player has no hats on:

Hat = game.Lighting.Hat -- Wherever your hat is stored.

game.Player.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
		Hat:Clone().Parent = character
	end)
end)

If you need more help be free to message me!

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