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

How can I insert an accessory into a player without it just falling to the floor?

Hi,

I'm creating a few hats for my group on roblox. So far, I've created the accessory itself, welded it together and made it so you are able to walk over it to wear it.

The next step I need to take is actually giving the player the accessory automatically when they join the team. I can't seem to find anything anywhere explaining how to attach accessories to a player, and by just inserting it into a player, it just falls to the ground.

Thank you for your time, any help is appreciated,

Hollowalexs

3 comments

0

They use attachments that have the same name as the attachment in the character, roblox will then weld it to the character.

0

If you are wanting the hat to stay on the head of the avatar, then you'll have to weld it to their actual head. Here is a link about how to script a weld. Hope if helps! http://wiki.roblox.com/index.php?title=Weld

0

Also you might have to use CFrame and CFrame.Angles to make it fit right

1 answer

you anchor it first so it stays or put Cancollide on true

1 comment

0

If you anchor it it wont move unless you edit the Position or CFrame of it, but even so, w/ a hat it'll get the player stuck in the position. (Unless that's changed.)

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