function setOpen()
if #players:GetPlayers() < maxPlayers - 1 then
openStore:AddAsync({game.JobId, "en-us"}, 20, 0)
--openStore:RemoveAsync()
end
end
This is my code, the purpose of it is to set a server open for my queue system. When a game is about to end, setOpen() is ran which adds the job id, and a second value (ignore en-us, i put it there temporarily)
My problem is, I want to remove the item I added if the server fills up or shuts down so players wont be teleported if the server isnt availble.
RemoveAsync requires a key, but I don’t know where to get the key