How would i improve this?

Hi, how could i improve this? and how would i know if all the players on that table got teleported so the countdown will reset again? thanks in advance ik its a suck explanation but yk please help :sob:

local suc, result = pcall(TeleportService.TeleportAsync, TeleportService, PlaceId, PlayersOnTable)
if (suc and result ~= nil) then
					task.delay(3, function()
						table.clear(PlayersOnTable)
						Signal.Value = "CanProcceed"
					end)
				else
					Signal.Value = "CanProcceed"
				end

I don’t really know if this will help.
But here are some Dev forum posts that can possibly help you.

Links :

1 Like