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 » All Things ROBLOX
Home Search
 

Re: Is "Air" a material for smooth terrain?

Previous Thread :: Next Thread 
GamermanNotHacked is not online. GamermanNotHacked
Joined: 18 May 2013
Total Posts: 11685
10 Jul 2015 09:00 AM
So you're saying that I can do this to delete terrain:

game.Workspace.Terrain:FillBlock(game.Workspace.Part.CFrame,game.Workspace.Part.Size, Enum.Material.Air)


So... I bought this ROBLOX + Plugin... Now I don't need to type my siggy over and over again!
Report Abuse
Partcline is not online. Partcline
Joined: 02 Jun 2014
Total Posts: 627
10 Jul 2015 09:03 AM
You bought your "plugin"?

it's free
Report Abuse
GamermanNotHacked is not online. GamermanNotHacked
Joined: 18 May 2013
Total Posts: 11685
10 Jul 2015 09:15 AM
IS THAT ALL YOU CARE ABOUT?!?!!?!!?!


So... I bought this ROBLOX + Plugin... Now I don't need to type my siggy over and over again!
Report Abuse
1P4 is not online. 1P4
Joined: 07 Sep 2014
Total Posts: 5071
10 Jul 2015 09:16 AM
Air is a material?
wtf
space confirmed?

It's not about how many times you win, what matters is HOW you win.
Report Abuse
GamermanNotHacked is not online. GamermanNotHacked
Joined: 18 May 2013
Total Posts: 11685
10 Jul 2015 09:21 AM
OKAY, NEVERMIND. LOCK THIS THREAD.

It said that it was generated with a script. Idk much about scripting, but I found the word "air" so...

local __ = require(52045834)

local terrain = false -- change to build [[File:BasePart Materials]]

local materials = __.filter(
Enum.Material:GetEnumItems(),
function(v)
return v.Name ~= 'Air'
end
)

local spacing = Vector3.new(20, 20, 20)
local size = Vector3.new(12, 12, 12)

if not terrain then
size = size / 4
spacing = spacing / 4
end

local rows = 3
local cols = 7
local center = spacing * Vector3.new(
(cols-1) / 2, (rows-1) / 2, 0
) + size/2


local i = __.range(#materials):iter()
for x in __.range(0, 7-1):iter() do
for y in __.range(0, 3-1):iter() do
local m = materials[i()]

local corner = Vector3.new(x,y,0) * spacing

local p = Instance.new("Part")
p.Anchored = true
p.Position = corner + size / 2
p.FormFactor = Enum.FormFactor.Custom
p.Size = size
p.Parent = game.Workspace

if terrain then
local region = Region3.new(corner, corner + size)
game.Workspace.Terrain:FillRegion(region, 4, m)
p.Transparency = 1
else
p.Material = m
end

local b = Instance.new("BillboardGui")
b.Adornee = p
b.Parent = p
b.Size = UDim2.new(0, 0, 0, 0)
b.AlwaysOnTop = true
b.StudsOffset = Vector3.new(0, 0, size.z/2)

local t = Instance.new("TextLabel", b)
t.Position = UDim2.new(0, -100, 0, -20)
t.Size = UDim2.new(0, 200, 0, 40)
t.BackgroundTransparency = 1
t.Font = "SourceSansBold"
t.Text = m.Name
t.TextStrokeColor3 = Color3.new(1, 1, 1)
t.TextStrokeTransparency = 0
t.FontSize = Enum.FontSize.Size18
end
end

workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera.FieldOfView = 40
workspace.CurrentCamera.CoordinateFrame = CFrame.new(
center + size * Vector3.new(0, 0, 12.5),
center
)

So... I bought this ROBLOX + Plugin... Now I don't need to type my siggy over and over again!
Report Abuse
drtrollr is not online. drtrollr
Joined: 11 May 2013
Total Posts: 10888
10 Jul 2015 09:21 AM
what would it look like?


( ͡° ͜ʖ ͡°) s-Senpai!
Report Abuse
leates is not online. leates
Joined: 16 Jan 2009
Total Posts: 5650
10 Jul 2015 09:22 AM
Yes, air is an empty voxel.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • 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