Hi.
I really need help I have been suffering from this problem for days.
I’m trying to make the Floor form according to the direction of the points.
[sketch about the floor triangles how i make it]
local function GetDetails(x):() -- function: Important points for create new triangle
local PointChildren = Points:GetChildren() -- getting all point that sends
local a,b,c
a=PointChildren[x] -- Point just created
b=PointChildren[1] -- the first point
c=PointChildren[x-1] -- Last Point
return a,b,c
end
-- x is number that where the point should be
--[[
here example about x and what is x
for x, Triangles in ipairs(Points:GetChildren()) do
local a,b,c = GetDetails(x)
-- you don't need to see all the script just that enought i think.
end
]]
So when I try this is what happens:
like i said i just wanna make the Floor form according to the direction of the points.
[what i want to be.]