Let me just show you my script before I ask:
local debounce = true
local ExampleTable = {} -- open for players names to be put in
script.Parent.Touched:Connect(function(player)
if not debounce then
return
end
debounce = false
if not ExampleTable[player.Parent.Name] then
print("Player is not in table")
table.insert(ExampleTable, player.Parent.Name)
wait(1)
debounce = true
else
print("Player's name is in table")
table.remove(ExampleTable, player.Parent.Name)
wait(1)
debounce = true
end)
Everytime I touch the brick, it tells me over and over that it is not in the table.
Is my table.insert is wrong or what? Should I even use this?

2 comments
You forgot an 'end'
This wouldn't with with the end too