generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to properly position a hat on a NPC?

Previous Thread :: Next Thread 
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
29 Apr 2017 12:34 AM
When it's not an NPC, you can just call player:LoadCharacterAppearance(Instance hat), but whenever it IS an NPC, stuff can get tricky. You can't just parent the hat, or accessory, to the NPC because it won't automatically find the correct position. Anyone know how to properly position the hat (or accessory) on an NPC?


Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
29 Apr 2017 12:35 AM
If you parent it to the NPC, it does find the correct position.
Report Abuse
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
29 Apr 2017 12:35 AM
Oh and by the way, if you think you've got it, try to load wings onto a NPC. ############################################################### = game.ServerStorage
Report Abuse
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
29 Apr 2017 12:36 AM
/fsj5CUPF

paste bin


Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
29 Apr 2017 12:37 AM
I work with NPCs all the time. It works fine for me.

My plugin that literally dresses NPCs like that also works.
Report Abuse
Intended_Pun is not online. Intended_Pun
Joined: 10 Aug 2016
Total Posts: 4384
29 Apr 2017 12:37 AM
That code has nothing to do with your problem.
Report Abuse
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
29 Apr 2017 12:38 AM
Hmm, yeah? Try the wings, dude.

This doesn't look like the right position to me.

im gur

/5dvGH7W


Report Abuse
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
29 Apr 2017 12:38 AM
Yeah it does. Try loading the wings on an NPC, or "copy and pasting" them into the NPC model. It doesn't work.


Report Abuse
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
29 Apr 2017 12:44 AM
Alright then.


Report Abuse
turner5089 is not online. turner5089
Joined: 22 Oct 2016
Total Posts: 33
29 Apr 2017 01:38 AM
there is a simple way to do it. use the scale tool. but before you do that, set the scale to ###### it should work.
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
29 Apr 2017 01:48 AM
Simple,

Step 1: Put hat inside the NPC model

you're done ^_^
Report Abuse
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
29 Apr 2017 08:26 AM
@Soybeen

That does NOT work.


Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
29 Apr 2017 08:27 AM
http://wiki.roblox.com/index.php?title=API:Class/Humanoid/AddAccessory


Report Abuse
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
29 Apr 2017 08:28 AM
# #### ####
Report Abuse
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
29 Apr 2017 08:29 AM
That doesn't work still... :/

It doesn't position some accessories correctly.


Report Abuse
qrushed is not online. qrushed
Joined: 10 Apr 2012
Total Posts: 587
29 Apr 2017 08:31 AM
I think it only mispositions back accessories but idk. Idk why AddAccessory() method wouldn't work, play around with it?


#code --This validates my comment.
Report Abuse
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
29 Apr 2017 08:32 AM
Also thank you VERY much for that method. I did not know about it.

Gonna alert an admin that it doesn't position them right.


Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
29 Apr 2017 08:28 PM
Are you taking about Hats or Accoutrements because those are two completely different things now.
Parenting a Hat object to an NPC will put the part of the hat named Handle onto that NPC's head (whether it has to be named "Handle" or not I'm not sure)
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
29 Apr 2017 08:28 PM
Otherwise this, which was already linked to you, is your solution:
wiki.roblox.com/index.php?title=API:Class/Humanoid/AddAccessory
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
29 Apr 2017 08:29 PM
Don't annoy the Admins because it's probably your offset that's the issue, not an item directly from the Roblox catalog.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image