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

Re: Disabling 2.0's

Previous Thread :: Next Thread 
PatrickRusso is not online. PatrickRusso
Joined: 13 Feb 2010
Total Posts: 571
14 Nov 2013 09:52 PM
Hi,

Is there a script available that disables all 2.0's, Action Figure, Man, Woman, and ROBLOX Girl packages?? I don't want to disable any other packages, just those.

Thanks in advance,
Patrick
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
14 Nov 2013 09:52 PM
Yup, delete the.... I forgot what it was... Let me check... (Give me 5 minutes)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
14 Nov 2013 09:53 PM
Remove all objects in character with the class name of CharacterMesh
Report Abuse
PatrickRusso is not online. PatrickRusso
Joined: 13 Feb 2010
Total Posts: 571
14 Nov 2013 10:26 PM
But I don't want ALL packages removed from game, only those few I listed.
Report Abuse
qrrrq is not online. qrrrq
Joined: 27 Jan 2013
Total Posts: 1252
14 Nov 2013 10:36 PM
Assuming this script is in the character

pack = script.Parent:GetChildren()

for i=1, #g do
if g[i]:IsA("CharacterMesh") and g[i].MeshId == ID or g[i].MeshId == ID then
g[i]:remove()
end
end

Wherever it says ID add the wanted ID and add more "or" statements for more IDs.
Report Abuse
PatrickRusso is not online. PatrickRusso
Joined: 13 Feb 2010
Total Posts: 571
15 Nov 2013 09:49 PM
Thank you.
Report Abuse
PatrickRusso is not online. PatrickRusso
Joined: 13 Feb 2010
Total Posts: 571
15 Nov 2013 10:24 PM
For the final script I have this:

pack = script.Parent:GetChildren()

for i=1, #g do
if g[i]:IsA("CharacterMesh") and g[i].MeshId == 27112438 or g[i].MeshId == 86499905 or g[i].MeshId == 32336368 then
g[i]:remove()
end
end
Report Abuse
MHebes is not online. MHebes
Joined: 04 Jan 2013
Total Posts: 2278
15 Nov 2013 10:46 PM
The MeshId isn't a number, it's string:

"http://www.roblox.com/asset/?id=86499905"
Report Abuse
insaneROBLOXER123 is not online. insaneROBLOXER123
Joined: 23 Nov 2011
Total Posts: 192
15 Nov 2013 10:49 PM
Need to check for the torso, left leg, right leg, left arm, right arm, and head assets for the CharacterMesh...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting 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