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
|
  |
| Joined: 28 Nov 2009 |
| Total Posts: 818 |
|
|
| 16 Nov 2013 10:30 PM |
| Sorry if this is in the wrong section |
|
|
| Report Abuse |
|
|
lokieyo
|
  |
| Joined: 28 Nov 2009 |
| Total Posts: 818 |
|
| |
|
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
|
  |
| Joined: 28 Nov 2009 |
| Total Posts: 818 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 16 Nov 2013 10:53 PM |
You don't need admin for this.
It's a script. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|