So when i loop and check for a folders name it doesn't get the names and instead does it like they don't exist. A solve would be very helpful thanks. No output errors. I have string values that get added into the folder
local v = script.Parent.Parent.Values
local function makeLookupTable(table) -- Utility function to create a lookup table
for i = 1,#table do
table[table[i]] = true
end
return table
end
local whitelist = makeLookupTable({script.Parent.Parent.Parent.Parent.whitelists:GetChildren()}) --problem seems to be here
script.Parent.MouseButton1Down:Connect(function()
script.Parent.Parent.Values.count.Value = script.Parent.Parent.cmdcount.Text
if v.torf.Value == false then
v.torf.Value = true
script.Parent.Text = "LOOPING"
-------------------------------------------------------------
while wait(v.wait.Value) do
if v.torf.Value == true then
for _, player in ipairs(game.Players:GetPlayers()) do
if not whitelist[player.Name] then
game:GetService'Players':Chat(":"..tostring(script.Parent.Parent.cmd.Text).." "..tostring(player.Name).." ")
end
end
end
end
elseif v.torf.Value == true then
v.torf.Value = false
script.Parent.Text = "OFF"
end
end)

2 comments
I don't know how "toe" get "children" names in a folder.
to* just an error