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: How to re-generate terrain IN GAME in a personal server?

Previous Thread :: Next Thread 
lokieyo is not online. lokieyo
Joined: 28 Nov 2009
Total Posts: 818
16 Nov 2013 10:26 PM
How do you re-generate the terrian in a personal server?

"Re-generate" as in

The whole place gets wiped, and everyone is stuck in a glass box,
Report Abuse
lokieyo is not online. lokieyo
Joined: 28 Nov 2009
Total Posts: 818
16 Nov 2013 10:30 PM
Sorry if this is in the wrong section
Report Abuse
lokieyo is not online. lokieyo
Joined: 28 Nov 2009
Total Posts: 818
16 Nov 2013 10:33 PM
bump

please help
Report Abuse
Ictis is not online. Ictis
Joined: 01 Sep 2011
Total Posts: 1216
16 Nov 2013 10:36 PM
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(clearterrain(message)
if message.stringe == "clear" then
Workspace.Terrain:clear()
end
end)
end)

This'll clear the terrain entirely.
Report Abuse
lokieyo is not online. lokieyo
Joined: 28 Nov 2009
Total Posts: 818
16 Nov 2013 10:39 PM
Not really
Report Abuse
Ictis is not online. Ictis
Joined: 01 Sep 2011
Total Posts: 1216
16 Nov 2013 10:41 PM
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(clearterrain(message)
if message.stringe == "clear" then
Workspace.Terrain:clear()
c = game.Players:GetChildren()
for i=1, c do
d = c.Character
d:MoveTo(math.random(-25,25),100,math.random(-25,25)
wait()
area = Reg3int16.new(0,-50,0,100,50,100 --Change according to your needs
material = 0 --Change according to your needs
Workspace.Terrain.SetCells(area,material,0,0)
end
end)
end)

This'll put the players into the air, then remove and replace the terrain, when you chat clear.
Report Abuse
lokieyo is not online. lokieyo
Joined: 28 Nov 2009
Total Posts: 818
16 Nov 2013 10:52 PM
And so How do I do this IN-GAME if I have no Admin commands?
Report Abuse
JimboFettt is not online. JimboFettt
Joined: 02 Nov 2008
Total Posts: 1389
16 Nov 2013 10:53 PM
You don't need admin for this.

It's a script.
Report Abuse
69scott69 is not online. 69scott69
Joined: 30 Jan 2011
Total Posts: 6136
16 Nov 2013 10:58 PM
It's set up to work if the players chat the word clear.
@ Ictis. Should it read 'string' instead of 'stringe'?
Report Abuse
JimboFettt is not online. JimboFettt
Joined: 02 Nov 2008
Total Posts: 1389
16 Nov 2013 11:00 PM
Oh. Then I read it wrong [joking, I just don't understand it]. I forgot you could execute scripts by giving voice commands.
Report Abuse
Ictis is not online. Ictis
Joined: 01 Sep 2011
Total Posts: 1216
16 Nov 2013 11:00 PM
Yes, yes it should.

game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(clearterrain(message)
if message.string == "clear" then
Workspace.Terrain:clear()
c = game.Players:GetChildren()
for i=1, c do
d = c.Character
d:MoveTo(math.random(-25,25),100,math.random(-25,25)
wait()
area = Reg3int16.new(0,-50,0,100,50,100 --Change according to your needs
material = 0 --Change according to your needs
Workspace.Terrain.SetCells(area,material,0,0)
end
end)
end)
Report Abuse
lokieyo is not online. lokieyo
Joined: 28 Nov 2009
Total Posts: 818
16 Nov 2013 11:19 PM
This is what I mean. Something happens, Everyone falls to their death, the spawn into a glass box, and the owner has one of those Terrain Generator GUIS like in studio. And a new one generates.
Report Abuse
Ictis is not online. Ictis
Joined: 01 Sep 2011
Total Posts: 1216
16 Nov 2013 11:20 PM
That's not really suited for either BH or SH, because it's an entirely new script.

Possibly two entirely new scripts, considering the terrain building one.

Look on the wiki and see if you can figure it out.
Report Abuse
69scott69 is not online. 69scott69
Joined: 30 Jan 2011
Total Posts: 6136
17 Nov 2013 12:49 AM
@ Ictis, shouldn't you move the characters first, then clear the terrain.
It might solve one of the issues.
Report Abuse
Ictis is not online. Ictis
Joined: 01 Sep 2011
Total Posts: 1216
17 Nov 2013 12:50 AM
69, there's no wait in between, so the affect is minuscule. He wants something else, anyways.
Report Abuse
lokieyo is not online. lokieyo
Joined: 28 Nov 2009
Total Posts: 818
17 Nov 2013 11:45 AM
I've seen a couple of people do it with a plain PS
Report Abuse
Dantars is not online. Dantars
Joined: 02 Jan 2012
Total Posts: 6244
17 Nov 2013 11:49 AM
In game, there used to be a small GUI that said Reset Server, or something like that. I don't know if it still exists as I'm not BC, but if it does, that's how.
Report Abuse
mrlong2 is not online. mrlong2
Joined: 25 Jul 2009
Total Posts: 30
18 Nov 2013 07:44 AM
a simple problem with the script above is that anyone can clear terain.
yeah...

Dantars: this srever looks awsome!
Noob234: clear
Dantars: there goes an hour of work...
Report Abuse
scacman1967 is not online. scacman1967
Joined: 06 Aug 2011
Total Posts: 9288
18 Nov 2013 11:23 AM
There was a hint of a script in the blog back a year or so ago. It would randomly draw terrain with buildings.
I forget who made the script but remember seeing it.

I will try to find the blog. As for the script given here , It may not work because of one line.
Workspace.Terrain:clear() , the C should be capitalized for it to work.

An alternative to this is getting a random map script.
Then make a few terrain maps , get FusiaOS's triangle generator and cover/trace the map with triangles so that you now have a similar map with parts instead of voxels.
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