#humanoid description problem

1 messages · Page 1 of 1 (latest)

runic dove
#

How would i make it keep the player's accessories, do I edit the current description or what

wanton mirage
#

you can use HumanoidDescription:GetAccessories() to get them

runic dove
#

oh i didnt know that existed

#

let me try

#

wait how would i add them to the rogue description

#

do i use applydescription again?

wanton mirage
runic dove
#

how am i supposed to combine the two

#

and how does getaccessories even work isnt every accessory seperate?

#

i mean how do i edit it via script

#

i tried doing this but it didnt work

signal oceanBOT
#

studio** You are now Level 5! **studio

graceful jay
#

like whats happening here?

runic dove
#

to change your character into a humanoid Desc i added when you touch a part

#

it puts you in a team

#

every team has their own character

#

im trying to make it so that the character inherits the original player's accessories

graceful jay
#

oh i see i see i got confused by the function name

runic dove
#

rogue is one of the teams

#

uhh so any ideas?

graceful jay
#

Have you debugged it yet though?

#

like does it actually work as intended?

runic dove
#

it works, but it doesnt apply the accessories

#

and i dont know how to apply accessories

#

the thing i tried gave an error

#

it said argument is nil

graceful jay
#

Have you printed out playerDesc and rogueDesc ?

runic dove
#

no

#

should i do that?

graceful jay
#

try printing it out first

#

to see what would show up

runic dove
#

pretty expected

graceful jay
#

hm

#

what about playerDesc:GetAccessories()? I havent used ApplyDescription yet

runic dove
#

same i just tried it out today ill try it

#

what parameter is supposed to go there?? i dont get it

graceful jay
#

hm

#

is there even a parameter for it?

runic dove
#

yeah argument 1 missing

#

FOR SOME REASON

#

when i gave it a boolean

#

it printed that

#

how does that event work

#

wth is going on

graceful jay
#

what hte fuck

runic dove
#

there arent any tutorials for humanoid descriptions either

#

for now ill just not do the accessory thing unless someone knows what to do

graceful jay
#

all i know is that like ApplyDescription just applies Shirts, pants, Body Color, etc etc basically a replica of a character description

#

but ive never heard of GetAccessories

#

😭

runic dove
#

Yeah they previous guy suggested it

wanton mirage
#

It returns an array of the accessories

wanton mirage
#

SetAccessories(accessories : Array,includeRigidAccessories : boolean):()
Accepts a table that sets the accessories and related properties for an avatar.
and
GetAccessories(includeRigidAccessories : boolean):Array
Returns a table of an avatar's current accessories.

runic dove
#

Nice thx

#

local playerAccessories = playerDesc:GetAccessories() this line is giving me an error

wanton mirage
#

see the docs reference for those methods (I sent above)

runic dove
#

ok

#

thanks

#

alr its working now thanks