I got this error saying extent can not be empty this is my function:
local function Fill(Model, Material, Position, Size)
if Model == "Block" then
game.Workspace.Terrain:FillBlock(Position, Size, Material)
elseif Model == "Wedge" then
game.Workspace.Terrain:FillWedge(Position, Size, Material)
else
error("Unknown model")
end
end