Frewsty
(Frewsty)
August 8, 2021, 5:31pm
#1
I’m trying to make a clone of a player in my game, but whenever I do some accessories (especially back accessories) bug out and are attached wrongly.
I’m getting a humanoid description from a user ID and loading it onto a dummy.
This is my code.
local plrclone = game.ReplicatedStorage.Characters.Dummy:Clone()
plrclone.Parent = game.ReplicatedStorage.Characters
plrclone.Name = plr.Name
local id = plr.UserId
local humdescription = game.Players:GetHumanoidDescriptionFromUserId(id)
plrclone.Humanoid:ApplyDescription(humdescription)
Is there a way I can fix this?
2 Likes
I have the code your trying to achieve, i’ll give it to you give me a second.
game.Players.PlayerAdded:Connect(function(player)
script.Parent.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId))
wait()
end
)
Put this on a dummy
Frewsty
(Frewsty)
August 8, 2021, 5:47pm
#3
I have the code to make the clone, except when I do the accessories are in the wrong place.
exactly, that code is superior that I just shared cause it corrects attachments.
I don’t know how, but it just does better then other scripts.
Frewsty
(Frewsty)
August 8, 2021, 5:56pm
#6
I don’t really get it, the attachments are still bugged.
I’m applying the description to a clone of the dummy.
A hacky way of fixing this would be to parent all the accessories to workspace and then parent them to the clone
Frewsty
(Frewsty)
August 8, 2021, 6:06pm
#8
I tried doing that, and the bug is still here.
I thought it was maybe because I had the clones in ReplicatedStorage, but I also tried keeping them in workspace which also didn’t work.
Hmmm. Are you sure the attachments are positioned correctly inside of the accessories and have the correct name of the attachment inside the character
Frewsty
(Frewsty)
August 8, 2021, 6:13pm
#10
I think I see the problem now. My clone doesn’t have hat attachments inside the body parts like how a normal character would.
3 Likes
Frewsty
(Frewsty)
August 8, 2021, 6:13pm
#11
I probably just need to add those attachments to the dummy template.
Frewsty
(Frewsty)
August 8, 2021, 6:15pm
#12
Yeah that was the problem.
Thanks for helping!
1 Like