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 » Building Helpers
Home Search
 

Re: Hat Fall Though (NPC Problem)

Previous Thread :: Next Thread 
skunk940 is not online. skunk940
Joined: 18 Dec 2009
Total Posts: 221
30 Aug 2013 04:43 AM
I have created a great zombie. Done loads of building and scripting for it. Added clothes, but when I try to add a hat I com e across a problem. When adding most hats (smaller ones, gnome hat etc. works) the hat is positioned in the zombies head. When resizing or moving the hat to be on top of the NPCs head it simply falls though and sits in the head and brakes the zombie.

Someone suggested using offsetting the mesh but Roblox has not implemented that yet. Cframing is another route and I got CMDUtl but I can't work out how to offset the mesh using it. If anyone can tell me how or has another solution I would be very glad to hear it.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
30 Aug 2013 06:47 AM
Simply unanchor it, then resize it at will in edit mode. Then run this


weld = Instance.new("Weld", workspace.MODELNAME.Head)
weld.Part0 = workspace.MODELNAME.Head
weld.Part1 = workspace["HATNAME"]
weld.C0 = weld.C0 * CFrame.new(0, .2, 0) --manipulate the .2 to make it higher or lower.



Report Abuse
skunk940 is not online. skunk940
Joined: 18 Dec 2009
Total Posts: 221
30 Aug 2013 08:26 AM
When you say 'run it' do you mean right it on a notepad and then execute script it?

Plus do Part0 and Part1 need changing or not?
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
30 Aug 2013 08:45 AM
Run it in command bar in studio, I thought you builders were logical qq.

Yes, replace the CAPSCHARACTERS into your part and models name
Report Abuse
skunk940 is not online. skunk940
Joined: 18 Dec 2009
Total Posts: 221
30 Aug 2013 11:10 AM
Well I tried what you suggest, it did not work, so I played around with it for a little while before that building logic kicked in. I fixed it by moving the hat to a different part of the zombie model and used a inlet surface. Thanks for your help anyway, good to see people willing to help.
Report Abuse
skunk940 is not online. skunk940
Joined: 18 Dec 2009
Total Posts: 221
30 Aug 2013 11:56 AM
But alas my way produces a 2nd problem. when a zombie touches another they get each others hats which turn into head holders.

Back to your way and trying to get it to work. If this is of any help this is the way the zombie arranged.

Chef Zombie
-Gnome1
-- Handle
---Mesh



P.S Gnome1 is the name of the hat but not a gnome hat but a chefs hat.
Report Abuse
skunk940 is not online. skunk940
Joined: 18 Dec 2009
Total Posts: 221
30 Aug 2013 12:28 PM
AKA my original problem still exists, please help someone.
Report Abuse
skunk940 is not online. skunk940
Joined: 18 Dec 2009
Total Posts: 221
02 Sep 2013 03:58 AM
Bump
Report Abuse
ArcticT is not online. ArcticT
Joined: 17 Sep 2011
Total Posts: 22483
02 Sep 2013 05:31 AM
Could you not remove touch interest to fix the second issue
Report Abuse
skunk940 is not online. skunk940
Joined: 18 Dec 2009
Total Posts: 221
02 Sep 2013 09:00 AM
Tried that but I didn't work.
Report Abuse
skunk940 is not online. skunk940
Joined: 18 Dec 2009
Total Posts: 221
02 Sep 2013 09:01 AM
it*
Report Abuse
skunk940 is not online. skunk940
Joined: 18 Dec 2009
Total Posts: 221
03 Sep 2013 03:44 AM
Bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building Helpers
   
 
   
  • 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