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: y does dis kill server?

Previous Thread :: Next Thread 
TwoBoo is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
11 Jul 2012 10:53 PM
for i,v in pairs (game.Workspace:GetChildren()) do
if v.Name == "Terrain" then
v:Clear()
end
end

qq, lags every1 out den da server dies
Report Abuse
rayoma is not online. rayoma
Joined: 13 Nov 2009
Total Posts: 1911
11 Jul 2012 10:54 PM
Because that is a lot of data to clear from the voxel mesh.
Report Abuse
Aerideyn is not online. Aerideyn
Joined: 16 Jan 2010
Total Posts: 1882
11 Jul 2012 10:55 PM
It will finish eventually.. if you dont want the game to halt do it manualy but slower.


for x = -256,256 do
for y = 0,64 do
for z = -256,256 do
workspace.Terrain:SetCell(x,y,z,0,0,0)
end
wait()
end
end
Report Abuse
TwoBoo is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
11 Jul 2012 10:57 PM
ooohh, so dats y it lags it up. 2much terrain clearing == big lag. thx guyz.
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