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

How do I add specific hats for specific people into my game?

So I want to have only specific people spawn with specific hats. e.g. I want my friend to spawn with his fedora and I want another friend to spawn with a dominus.

How would I do this? Thanks.

2 answers

First, let me note this is not a request site. In the future try to do it yourself then come here if you cant get it to work

anyway,

game.Players.PlayerEntered:connect(function(plr) -- activate this when a player enters
	if plr.Name == "plr1" or "plr2" then -- see if the name is plr1 or plr2
		repeat wait() until plr.Character ~= nil -- wait for the character to load
		--I recommend putting the hat already into the game
		game.ReplicatedStorage.HAT:Clone().Parent = plr.Character -- clone the hat and parent it to the players character
	end
end)

this was a request and it got answered but everytime i ask a question it gets classes as a request. wtf!!

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