Hello. I have a block of code here, and I've tried to add debounces, but with no success. I am not sure of how to modify this to add a cooldown of 120 seconds, but if someone could help or explain that would be really nice!

gui.Frame.Frame.prisoner.MouseButton1Click:Connect(function()
    local pristea = game.Teams.Prisoners:GetPlayers()
    local pristeam = #pristea
    local guartea = game.Teams.Officers:GetPlayers()
    local guarteam = #guartea
    if pristeam == guarteam or pristeam == 1 and guarteam == 0 or guarteam == 0 and pristeam == 1 then
    remote:FireServer("Prisoner")
game.StarterGui:SetCore("SendNotification", {
				Title = "Team change successful"; 
				Text = "\n Your team was changed. \n ";  
				Duration = 10; 
				})

    elseif pristeam > guarteam or pristeam < guarteam or pristeam < guarteam or pristeam > guarteam then
                game.StarterGui:SetCore("SendNotification", {
                Title = "Team unbalance"; 
                Text = "\n You'll need to stay on your team until it is balanced. Sorry! \n"; 
                Duration = 10;
                })
    end
end)