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 » ROBLOX Fun » Look What I Made
Home Search
 

Terrain Builder SB Script by ENET

Previous Thread :: Next Thread 
ENET is not online. ENET
Joined: 01 Jan 2010
Total Posts: 4820
07 Apr 2012 06:54 PM
To use this you simply edit the building string....

Two enters = y increment
One enter = z increment
0-9 a-f = blocks
A space = no effected change to that block, but increment the x

...:


building = [==[
00000000000000000000000000000
09999999999999999999999999990
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09999999999999999999999999990
00000000000000000000000000000

00000000000000000000000000000
09999999999999999999999999990
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09999999999999999999999999990
00000000000000000000000000000

00000000000000000000000000000
09999999999999999999999999990
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09999999999999999999999999990
00000000000000000000000000000

00000000000000000000000000000
09999999999999999999999999990
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09999999999999999999999999990
00000000000000000000000000000

00000000000000000000000000000
09999999999999999999999999990
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09000000000000000000000000090
09999999999999999999999999990
00000000000000000000000000000
]==]

local terrain = workspace.Terrain;
local setcell = terrain.SetCell;


local position = workspace.ENET.Torso.Position;
local pos = terrain:WorldToCell(position);
local x0, y0, z0 = pos.X, pos.Y-1, pos.Z;
local codeon = "0123456789abcdef";
local x,y,z = 0, 0, 0;
local char;
local land;
local last;
for i = 2,#building do
char = building:sub(i,i);
if(char == string.char(10))then
if(last == char)then
y = y + 1;
x = 0;
z = 0;
else
z = z + 1;
x = 0;
end
else
land = codeon:find(char);
if(land)then
setcell(terrain, x+x0,y+y0,z+z0, land-1, 0, 0);
x = x + 1;
elseif(char == ' ')then
x = x + 1;
end
end
last = char;
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » ROBLOX Fun » Look What I Made
   
 
   
  • 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