Hey there! so, i’m trying to make an inf terrain generation and found this video: Terrain Generation 2 - Roblox Studio (Chunk Objects and Triangles) - YouTube by @okeanskiy
i tried to test npc’s at the generation by searching up “nico nextbots” at the model and inserting it and it just bugs out. Maybe because it is made of triangles/wedges entirely?
I tried terrain and npcs worked (terrain in separate game to test if its just npc or the inf terrain) so how would i effectively convert the wedges into terrain?
I’m sorry, are you referring to turning parts into terrain?
Use this Roblox plugin, This is 100% safe and has no virus. This has over 1k likes…
Ah, but theres a problem with that. Its a plugin and not a script/module script.
Did you mean to turn a part to terrain from a script?
Refers to Fill… functions within this page
FillBall, FillBlock, FillCylinder, FillRegion, FillWedge
Doesn’t work, i made a function and it loops through all the wedges, then it tries to use “FillBlock” (i even tried “FillWedge”) to make it grass and it just didn’t work.
Can you show the code that this’s used?
Dont have the code rn since i deleted but i remember it.
local function convert(chunk)
local instances = chunk.instances
for i,v in pairs(instances) do
if v.Name == "Wedge" then
Idk if the table.remove thing worked but whatever
You don’t need
table.remove for this
original code didn’t have it, it still didn’t work sadly
Are you sure instances is an array of part already?
Yeah, instances are an array of parts, also i checked if its named “Wedges” since trees are also stored there.
The string you specified is “Wedge” though
I didnt rename the Wedges, idk why i put it in quotation
Its still named “Wedge”
Can you try
print(instances) before the for loop and screenshot the output table expanded?
Studio crashed but whatever
Also ill show u what it looks like
It literally just makes no parts at all when i remove “table.remove”
I printed v.CFrame and v.Size
772.5, -16.9695091, 765, -0.17906189, 0.684085429, 0.707081199, 0.969490528, 0.244981378, 0.00850054342, -0.167406663, 0.687030613, -0.707081199
0.0010000000474974513, 10.939990997314453, 10.629768371582031
It is a possibility that the thickness of these are a bit too small for an actual terrain to be made
Try set the X axis size to 1 to see if it works
OOH I’VE DONE THIS BEFORE lemme see if I can find the code…