Please help, my second last "end" is red underlined?
game.Players.PlayerAdded:Connect(function(player)
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
--Player One--
local Gui = script.Parent.Parent.PlayersInMatchPart.PlayersInMatchGui
if Gui.Player1.Taken.Value == 1 then
--Adding Player to Board
Gui.Player1.Taken.Value = 2
Gui.Player1.PlayerProfileImage.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userid="..player.UserId
Gui.Player1.PlayerLabel.Text = player.Name
end
--Player Two--
elseif Gui.Player2.Taken.Value == 1 then
print("test")
end
end
end) --This one
end)

5 comments
there's an end on line 11 that should be removed
^^^
You're ending the if statement on line 11 then continuing it and ending it again on line 15
Usually it means you need to remove an end or you are missing one.
hover the mouse over that "end)" and it would tell you the problem