HI, How can I make a helmet wearable? Can someone help me.
If you want a part to be touched to wear this hat you found, you can use this script:
01 | local Part = script.Parent |
02 | local Hat = 1 -- Change this to your hats assetID |
03 |
04 | local InsertService = game:GetService( "InsertService" ) |
05 |
06 | local function GiveHat(TouchPart) |
07 | if TouchPart.Parent:FindFirstChild( "Humanoid" ) then |
08 | InsertService:LoadAsset(Hat).Parent = TouchPart.Parent |
09 | end |
10 | end |
11 |
12 | Part.Touched:Connect(GiveHat) |