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

How to make hat which you can't drop?

How to make a hat which you can't drop? I tried welding but I'm just not good at it. Any ideas?

2 comments

0

Remove the handle object from the hat object and delete the hat. Then weld the handle to the character and set the handle to unanchored.

0

Ill try that now.

1 answer

You could use the AncestoryChanged event on the hat to detect when the player drops it. As soon as this happens, re-parent the hat to the player who dropped it.

Assuming player is defined:

local hat = player.HAT_NAME_HERE

hat.AncestoryChanged:connect(function(child, parent)
    hat.Parent = player
end)

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