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
 

What's the material number for smooth terrain glacier?

Previous Thread :: Next Thread 
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
12 Nov 2015 03:27 PM
It says 1552 but it gives me an error when I try to use it in SetCell

My goose is cooked!
Report Abuse
jumpykilldestroy is not online. jumpykilldestroy
Joined: 15 Jul 2012
Total Posts: 12319
12 Nov 2015 03:33 PM
15
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
12 Nov 2015 03:37 PM
No it's not.

My goose is cooked!
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
12 Nov 2015 03:45 PM
SetCell is for legacy terrain.
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
12 Nov 2015 03:49 PM
:(

My goose is cooked!
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
12 Nov 2015 03:54 PM
Anyway I can covert this to smooth terrain?

for x = 1, resolution do
for z = 1, resolution do
y1 = math.noise(
(x*frequency)/resolution,
(z*frequency)/resolution,
seed
)

local y2 = math.noise(
(x*frequency*.2)/resolution,
(z*frequency*.2)/resolution,
seed
)

local y3 = math.noise(
(x*frequency*4)/resolution,
(z*frequency*4)/resolution,
seed
)

y = ((y1*y2*power*power)+y3)
for b = 1, 5 do
if y <= -.3 then
y = -.3
m = 17
elseif y > -0.5 and y < 3 then
m = 1
elseif y > 3 and y < 12.5 then
m = 4
elseif y >= 12.5 then
m = 3
end
s = game.Workspace.Terrain:SetCell(x-30,b+y,z-30,m,1,1)
end
end
end



My goose is cooked!
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
12 Nov 2015 04:01 PM
SetCell still works but it requires legacy materials(Enum.CellMaterial), instead you could use FillBlock.
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
12 Nov 2015 04:03 PM
Doesn't fill block need a brick?

or do you mean put a square block of terrain on a brick and then change the height and set material?

My goose is cooked!
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
12 Nov 2015 04:08 PM
Terrain:FillBlock(CFrame location,Vector3 size,Material material)
Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
12 Nov 2015 04:17 PM
s2 = workspace.Terrain:FillBlock(CFrame.new(0,0,0),Vector3.new(x,b+y,z),Enum.Material.Glacier)

not working (creates flat block)

y1 = math.noise(
(x*frequency)/resolution,
(z*frequency)/resolution,
seed
)

local y2 = math.noise(
(x*frequency*.2)/resolution,
(z*frequency*.2)/resolution,
seed
)

local y3 = math.noise(
(x*frequency*4)/resolution,
(z*frequency*4)/resolution,
seed
)

y = ((y1*y2*power*power)+y3)


My goose is cooked!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
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