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

Putting hats on a user?

It seems that whenever i try to place a hat on a roblox user it is far off from there character. Is there a way to fix this or at least get around?

3 comments

0

Are you parenting it to the character and making sure it's unanchored?

0

Yes its parent is the character and that item is unanchored.

0

I believe just adding the Hat into the character model will be sufficient. However, it must be the ClassName must be Hat. Also, adding a tool to a Character's model also gives them that tool in hand and on unequip, their Backpack.

1 answer

Try calling MakeJoints. Here is an example,

local h = workspace.Hat -- Change

function joinHat(chr)
local clone = h:Clone()
clone.Parent = chr
clone:MakeJoints()
end

game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
joinHat(c)
end)
end)

1 comment

0

Make joints on the character.

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