I'm making a shark bite game but instead of the shark being played by a human its gonna be played by a robot and I'm adding them to a table so that I can detect when they all die so the round can end, but when I tried putting them in a table it didn't really work, So can anyone help me?
local sharks = {}
for i, shark in pairs(workspace:WaitForChild("Sharks"):GetChildren()) do
if shark then
table.insert(sharks, shark)
end
end

4 comments
Why don't u uuh try it
I did
is the sharks folder empty?
Yeah