#humanoid:addaccessory doesnt work properly

1 messages · Page 1 of 1 (latest)

valid flare
#

im trying to make an inventory system where if you have a proper achivement, you can equip a proper hat for your character to display it. for some reason, the hat appears in the humanoid, but i cant see it on the character. also, when i jump with the hat equiped, my charecter starts flinging away.

(before you anwser. the models are an accessory with a handle and an attachment, with disabled collision, anchor, and they are masseless)

coral violet
#

why are they in workspace? put them in replicatedstorage

valid flare
coral violet
#

there's another problem with this, even if this code worked, it would only show for that one player, not everyone. if you want it showing for everyone you need to add the accessory on the server not the client

valid flare
valid flare
valid flare
coral violet
autumn crescent
valid flare
autumn crescent
#

(You should also put it in replicated storage)

valid flare
coral violet
#

accessories attached to the player shouldn't be anchored

#

but because it's in workspace, it needs to be anchored since it will fall through the floor and hit the death plane and be destroyed

#

so uh

#

you may solve all the problems just by doing that

valid flare
#

i put it in replicated storage and it didnt fix. i dont fling, but the hat doesnt appear on the player, but does in the explorer. now that im thinking, maybe i sould spesify where exactly on the humanoid to put it? rn its just setting it as its parrent (how do i do that btw)

autumn crescent
autumn crescent
#

Make it a server script

winged kite
# valid flare im trying to make an inventory system where if you have a proper achivement, you...

First, you should put the accessories in ReplicatedStorage, you're trying to put the accessories on in a localscript which usually doesnt work idk why, this devforum post has a function that'll work locally if you can integrate it https://devforum.roblox.com/t/welding-accessories-to-a-character/265882/15

valid flare
valid flare
valid flare
coral violet
valid flare
#

the button gives an error like dis, well im gonna do it another way

autumn crescent
valid flare
#

fair point im a dummas

#

mb

coral violet
autumn crescent
#
for i, button in frame:getchildren() do
  button.Mouse1Clicked:connect(function()

  end)
end
coral violet
valid flare