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 force all players to wear a custom hat?

I want to test the new Valk to see if I want to buy it, but i cant do it without forcing players to wear it. So I don't have to put it down and walk to it. I have no previous code! Thanks for your time!

1 comment

0

just teleport the hat to the players face

1 answer

This is not a request site, but here it is anyways. This doesn't remove your hat, it just adds the hat handle onto your head. Copy/Paste this into a script and just put it into workspace via the explorer.

game.Players.PlayerAdded:connect(function(player) -- This adds the hat.
    repeat wait(0)until player.Character
    local hatId = 0 -- Replace this with the ID of your valk.
    local hat = game:service("InsertService"):LoadAsset(hatId):GetChildren()[1]
    hat.Parent = player.Character
end)

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