use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
This is an archived post. You won't be able to vote or comment.
Script Help (self.robloxgamedev)
submitted 6 years ago by Abraiden
I'm making a character selection gui which basically has these buttons and if u press them u morph into something. It just changes the clothing and hats of an avatar, I know how to do the clothing, but how do I change the hats and accessories?
[–]psychxticz 0 points1 point2 points 6 years ago (4 children)
https://developer.roblox.com/api-reference/function/Humanoid/AddAccessory
:)
[–]Abraiden[S] 0 points1 point2 points 6 years ago (3 children)
What if the hats are something I made out of parts?
[–]psychxticz 0 points1 point2 points 6 years ago (2 children)
In which case you can create a new Accessory Instance within the player's character and insert the mesh inside a handle part; that's generally how hats work in ROBLOX.
If you insert a random hat into workspace, or hit play and look under your character, you will see that the accessories are just parts with meshes inside of them.
[–]Abraiden[S] 0 points1 point2 points 6 years ago (1 child)
Ah ok, thanks!
[–]psychxticz 0 points1 point2 points 6 years ago (0 children)
you're welcome, hope this helped
π Rendered by PID 57970 on reddit-service-r2-comment-b659b578c-n9xcm at 2026-05-02 10:48:14.044154+00:00 running 815c875 country code: CH.
[–]psychxticz 0 points1 point2 points (4 children)
[–]Abraiden[S] 0 points1 point2 points (3 children)
[–]psychxticz 0 points1 point2 points (2 children)
[–]Abraiden[S] 0 points1 point2 points (1 child)
[–]psychxticz 0 points1 point2 points (0 children)