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 » Game Design
Home Search
 

Re: Remove your hat, sir!

Previous Thread :: Next Thread 
Atorixy is not online. Atorixy
Joined: 25 Feb 2009
Total Posts: 493
06 Apr 2015 04:31 AM
I need to figure out how to delete a player's hat and packages. I'm trying to play with ways to make custom outfits for characters for a future game, and I had already figured out how to weld bricks on a character so that it looks like clothing, and how to replace BodyColors. All I need to do now is replace hats and packages (I already know how to Instance and then Parent Character Meshes).
Report Abuse
Atorixy is not online. Atorixy
Joined: 25 Feb 2009
Total Posts: 493
06 Apr 2015 04:38 AM
Unnecessary bump
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
06 Apr 2015 04:40 AM
dr
Report Abuse
Atorixy is not online. Atorixy
Joined: 25 Feb 2009
Total Posts: 493
06 Apr 2015 04:45 AM
Bah, I don't thrive on abbreviations. Tell me what dr stands for?
Report Abuse
Atorixy is not online. Atorixy
Joined: 25 Feb 2009
Total Posts: 493
06 Apr 2015 04:46 AM
It just occurred to me: Don't remember.
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
06 Apr 2015 04:47 AM
nope. Didn't read.
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
06 Apr 2015 04:56 AM
I just read. Do you really want to use bricks as clothes? Make shirts then put them in the character. i think its a better idea.
Report Abuse
Atorixy is not online. Atorixy
Joined: 25 Feb 2009
Total Posts: 493
06 Apr 2015 06:20 AM
Bricks as clothes is actually more convenient because I don't have to make clothes just to use them, and I'd rather not use someone else's creation in my game, unless I paid them a good portion of my income for the game.

Plus, I have some sort of "IT HAS TO BE ORIGINAL" complex.
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
06 Apr 2015 06:34 AM
I wasn't talking about using someone else's. Make your Own.
Then you might be able to eventually sell them if you buy BC of course.
Report Abuse
robloxking240 is not online. robloxking240
Joined: 19 Aug 2010
Total Posts: 7049
06 Apr 2015 07:01 AM
You can use GetChildren() and for loops to do it, like this("character" is the player model):
for k, c in pairs(character:GetChildren()) do
if c.ClassName == "Hat" or c.ClassName == "CharacterMesh" then
c:destroy()
end
end

The hats load at a slight delay after the player spawns, you may need to have a delay if you use this. Alternately you can disable CanLoadCharacterAppearance so everyone spawns without anything, in a way such as this:

game.Players.PlayerAdded:connect(function(player)
player.CanLoadCharacterAppearance = false
end)
Report Abuse
Atorixy is not online. Atorixy
Joined: 25 Feb 2009
Total Posts: 493
06 Apr 2015 07:49 AM
@MT

I have to have BC to make them in the first place. I cannot use an item that doesn't exist within Roblox.
Report Abuse
Atorixy is not online. Atorixy
Joined: 25 Feb 2009
Total Posts: 493
06 Apr 2015 07:51 AM
@robloxking


I... forgot about that second part. Whoops.
Report Abuse
MTamidex is not online. MTamidex
Joined: 17 Oct 2013
Total Posts: 1092
06 Apr 2015 08:09 AM
Well. I said that you had to buy BC.

Or just make them and ask a BC member to put it on sale ....
Report Abuse
Atorixy is not online. Atorixy
Joined: 25 Feb 2009
Total Posts: 493
06 Apr 2015 08:21 AM
@robloxking

Bah, I failed BADLY at the CanLoadCharacterAppearance. I sort of copied and pasted your script... which makes me feel odd, as the reason for even custom- building clothes is solely originality.

I'll just write "credit to (your username)."
Report Abuse
Atorixy is not online. Atorixy
Joined: 25 Feb 2009
Total Posts: 493
06 Apr 2015 08:22 AM
@MT

Yeah, it's actually more fun to build them, and it looks nice close- up, less 2D pixel- ey.
Report Abuse
Atorixy is not online. Atorixy
Joined: 25 Feb 2009
Total Posts: 493
06 Apr 2015 08:31 AM
Damn. I forgot to say "thank you." Well, it's late, but thank you, robloxking204.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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