How can I get the model of a players head and hats. I tried getting it from their character in workspace, but their hats didn’t go along. Sort of a headshot but in a model.
1 Like
Get the character from the local player.
Player.LocalPlayer.Character.Head
I tried but it doesn’t get their hats and stuff
local model = game.Workspace.MODEL_NAME
game.Players.PlayerAdded:Connect(function(plr) -- player added
plr.CharacterAdded:Connect(function(char) -- char added
for _, i in pairs(char.Humanoid:GetAccessories()) do -- gets all accessories
local clone = i:Clone() -- clones them to the model
clone.Parent = model
end
local head = char:FindFirstChild("Head")
if head then
local clone = head:Clone()
clone.Parent = model
end
end)
end)
3 Likes