Hello!
I have been working on a duel system and I can’t figure out why this certain function is not always running.
Here is the function:
player.PlayerGui:WaitForChild("ExitQueue").button.MouseButton1Click:Connect(function()
if P1 == player.Name then
exitQueue(player)
elseif P2 == player.Name then
exitQueue(player)
end
end)
The function runs properly until the player respawns.
Anyone know what the problem is?