I couldn't find an output error with this script, but for some reason it won't work...
debounce = true
done = {}
script.Parent.Touched:connect(function(player)
if debounce == true then
debounce = false
a == false
for i,v in pairs (done) do
if player.Parent.Name == done[i] then
open() --I hid the function, but it's correct
a = true
end
end
if a == false then
ls = game.Players:FindFirstChild(player.Parent.Name).leaderstats.Admins
ls.Value = ls.Value-1
done.insert[player.Parent.Name]
open()
end
a = false
wait(1)
debounce = true
end
end)
What should happen is this: When a player touches the brick, he should only be charged once instead of all the time when he touches the brick. But it doesn't work properly and I can't find an output error (not sure why)...

2 comments
Do you have anything for your script to do if a is true?
On line 6, you have two equal signs. Is there supposed to be an if statement? If not, remove one. We need a better explanation of this script, especially pertaining the 'a' variable.