Code here:
local player = game.Players.LocalPlayer
local board = workspace.FighterBoard
local gui = board.SurfaceGui
local frame = gui.Frame
local fighters = frame.Fighters
local button = frame.SignIn
local debounce = true
button.Activated:Connect(function()
if(debounce)then
for i,v in pairs(fighters:GetChildren())do
if(v.Name == "PlayerVsPlayer")then
if(v.Player1.Text == "None")then
v.Player1.Text = player.Name
break
elseif(v.Player2.Text == "None")then
v.Player2.Text = player.Name
break
end
elseif not(v.Player1.Text == "None" and not v.Player2.Text == "None")then
print("pie")
break
end
end
--debounce = false
end
end)
ahhh help

1 comment
because you have an end on line 24