HI, How can I make a helmet wearable? Can someone help me.
COMMUNITY QUESTION
How to make helmets that I found in the avatar shop wearable?
1 answer
If you want a part to be touched to wear this hat you found, you can use this script:
local Part = script.Parent
local Hat = 1 -- Change this to your hats assetID
local InsertService = game:GetService("InsertService")
local function GiveHat(TouchPart)
if TouchPart.Parent:FindFirstChild("Humanoid") then
InsertService:LoadAsset(Hat).Parent = TouchPart.Parent
end
end
Part.Touched:Connect(GiveHat)
This discussion is preserved as it was. New answers, comments, and votes are closed.
