Im frustrated because I don't know why you cant say "if not TABLE[hit.Parent.Name] then"
I dont know how to say it.. its in a server script for all you people who ask
--||VotePad
local Config = script.Parent.Parent.Config
local VotesGUI = script.Parent.Parent.ConnectedBoard.VotesGui
local VoteDisplay = VotesGUI.VoteDisplay
local VoteImage = VotesGUI.Image
local DeniedPlayers = {}
local debounce = true
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
if not DeniedPlayers[hit.Parent.Name] then -- why does this not work
if not debounce then
return
end
debounce = false
Config.VotesAmount.Value = Config.VotesAmount.Value + 1
script.Parent.Color = Color3.fromRGB(0,255,0)
table.insert(DeniedPlayers, hit.Parent.Name)
print(DeniedPlayers)
wait(1)
debounce = true
end
end
end)

3 comments
you can do that...that returns false if hit.Parent.Name is in the table
If I helped you out, please accept my answer.
If not, comment under it and tell me what I can fix to help you better.