self:ConnectClientEvent("AutoClick", function(plr)
local End1 = GetEndDebounce(plr)
if End1["deb"] == false then
End1["deb"] = true
else
End1["deb"] = false
end
while wait(1) do
local End = GetEndDebounce(plr)
if End == nil then
break
end
if End["deb"] == false then
break
end
local Data = DataService:GetNumber(plr)
Data.Germs += 1
end
end)
If I click button multiple times it spawns a bunch of while wait() do.
How do I prevent this?