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

Appearance shows in Workspace but not in StarterPlayer in game?

Asked by 5 years ago
Edited 5 years ago

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.

0
Try cloning it to the player's character not the starter character in the StarterPlayer folder Artallous 2 — 5y
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 RedDeadDevil1908 54 — 5y
0
Can you maybe add some of the code in ScriptingHelpers? GamingZacharyC 152 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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.

Ad

Answer this question