for some reason most of my scripts arent running well, when i make a table and recently today which was pathfinding [made a topic on].
i might be silly on making this but.
this example is from a game im making
local module = {}
--//Services
-- //Folders
local Obby = workspace:WaitForChild("Obby")
local ColourCollide = Obby:FindFirstChild("ColourCollide")
-- //Tables
local CollideTable = {}
local CharacterTable = {}
function module:Collide(player, character)
-- //for loop
for a, Part in ipairs(ColourCollide:GetChildren()) do
if Part:IsA("Part") then
if not table.find(CollideTable, Part.CanCollide) then
table.insert(CollideTable, Part.CanCollide)
end
print(CollideTable)
end
end
end
return module
this is the output,
if i want to use a table.find it doesnt help at all - can someone please figure this out cause i’ve been so confused all day