Zyneak
(Zyneak)
September 8, 2015, 10:32pm
#1
I’m very consistently getting this error when trying to use this method.
The only time I’ve been able to get it to work is by passing “Grass” as the third parameter. No other materials and all Enums fail.
workspace.Terrain:FillBall(Vector3.new(0,0,0),5,"Grass")
Output:
workspace.Terrain:FillBall(Vector3.new(0,0,0),5,Enum.CellMaterial.Brick)
Output: Unable to cast token to token
workspace.Terrain:FillBall(Vector3.new(0,0,0),5,"Empty")
Output: Unable to cast string to token
Zawie
(Zawie)
September 8, 2015, 10:33pm
#2
Could ya’ post like the exact line that’s erroring…
Zawie
(Zawie)
September 8, 2015, 10:51pm
#3
I am pretty sure it takes Material Enums
try using
Enum.Material.Rock
or whatever
that works for me
table that has to do with filling balls:
“{Size = .8, Material = Enum.Material.Rock},
{Size = .7, Material = Enum.Material.Mud},
{Size = .5, Material = Enum.Material.Ground},
{Size = .3, Material = Enum.Material.Basalt},
{Size = .1, Material = Enum.Material.CrackedLava}”
All of the material values work for me
Zyneak
(Zyneak)
September 8, 2015, 11:01pm
#4
Well somehow I didn’t read that… Now I feel really stupid…
I’m sorry.
I was using Terrain:SetCell so I got used to using CellMaterial totally overlooking just Material.