Use game.Players:FindFirstChild(invitee) instead of game.Players[invitee] because FindFirstChild will return nil if the player is not found, but [] will error instead.
Use game.Players:FindFirstChild(invitee) instead of game.Players[invitee] because FindFirstChild will return nil if the player is not found, but [] will error instead.