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

Appearance shows in Workspace but not in StarterPlayer in game?

OK so, I've been making a customization GUI and I've just started learning about cloning for the hair. Now when i put my Starter Character into the Workspace with the hat it works, it puts it on the character:

https://imgur.com/a/LSlMhem

https://imgur.com/bC1iDmV

BUT once i put this in Starter Player and the Demon hat in Replicated Storage and clone it to the character it puts the hat in the person but doesn't show it:

https://imgur.com/HMqx67L

https://imgur.com/l72LcHS

https://imgur.com/6oXKjFp

Now i don't know if this is just a mistake on my part and I have no idea whats happening and its really easy to fix (i'm really new to coding), here the code IDK if its useful in this but here:

https://imgur.com/wRlWOpB

If anyone could help me and fix this, I would actually be so happy.

3 comments

0

Try cloning it to the player's character not the starter character in the StarterPlayer folder

0

I changed it to this local destination = game.Players.LocalPlayer.Character (i think thats what you mean), it did clone into there but still no hat showing up

0

Can you maybe add some of the code in ScriptingHelpers?

1 answer

✓ Accepted answer

You can rely on AddAccessory anytime you need to add hats, etc to a Humanoid. Be sure to provide a valid argument, and check that the weld is where you would like it to be. This is probably a better system moreover what you're doing right now.

If you need to attach an accessory on the server: Use AddAccessory()

If you need to attach an accessory on the client: https://devforum.roblox.com/t/humanoid-addaccessory-does-not-work-with-fe-from-a-localscript/33657/4 (a very innovative solution by TheGamer101).

As far as your system right now goes, you're going to want to attach to the actual character object over StarterCharacter - if this doesn't fix your issue I highly recommend the fix above.

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