Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Putting hats on a user?

Asked by 9 years ago

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?

0
Are you parenting it to the character and making sure it's unanchored? DigitalVeer 1473 — 9y
0
Yes its parent is the character and that item is unanchored. raspyjessie 117 — 9y
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. alphawolvess 1784 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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)
0
Make joints on the character. EzraNehemiah_TF2 3552 — 9y
Ad

Answer this question