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
 

Script to remove meshes?

Previous Thread :: Next Thread 
Persuas is not online. Persuas
Joined: 20 Jan 2011
Total Posts: 1972
05 Sep 2015 12:10 AM
Still nothing.
Report Abuse
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
05 Sep 2015 12:13 AM
Hmmmmmm ok..... So let me think

for i, v in pairs(game.Workspace.Model:GetChildren())
if v:IsA("BasePart") then
v.Name = "TERRAIN"
end
end

for i, v in pairs(game.Workspace.Model.TERRAIN:GetChildren()) do
v:Destroy()
end
Report Abuse
Persuas is not online. Persuas
Joined: 20 Jan 2011
Total Posts: 1972
05 Sep 2015 12:16 AM
Still no. Should I just ungroup and try?
Report Abuse
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
05 Sep 2015 12:17 AM
Ok ungroup complete
Report Abuse
zarman3402 is not online. zarman3402
Joined: 18 May 2013
Total Posts: 1449
05 Sep 2015 12:19 AM
function recurse(obj)
for i, v in pairs(obj:GetChildren()) do
if v:IsA("SpecialMesh") then
v:Destroy
else
recurse(v)
end
end
end
Report Abuse
Persuas is not online. Persuas
Joined: 20 Jan 2011
Total Posts: 1972
05 Sep 2015 12:23 AM
Hmm, studio is just crashing when I do that. Let me try something really quick.
Report Abuse
Persuas is not online. Persuas
Joined: 20 Jan 2011
Total Posts: 1972
05 Sep 2015 12:25 AM
It's not gonna let me ungroup.
Report Abuse
Previous Thread :: Next Thread 
Page 2 of 2Go to page: 1, [2] Prev
 
 
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