@name Tele with Screen
@inputs EGP:wirelink Up Down Select
@outputs 
@persist Index Players:array
@trigger 

if(first() | duped()){
    EGP:egpText(1, "Welcome to the Fuck You Machine", vec2(50, 20))
    EGP:egpSize(1, 30)
    entity():setAlpha(0)
    EGP:egpText(2, "CHOOSE YOUR VICTIM!", vec2(20,70))
    EGP:egpColor(2, vec(244,0,0))
    Players =  players()
    for(I = 1, Players:count()){
        EGP:egpText(2+I, Players[I, entity]:name(), vec2(30,90+20*I))
        }
    Index = 1
    EGP:egpBox(200, vec2(110, 120), vec2(190,20))
    EGP:egpAlpha(200, 120)
    }

if(Up & ~Up){
    Index--
    EGP:egpPos(200, vec2(110, 120+20*Index))
    }
if(Down & ~Down){
    Index++
    EGP:egpPos(200, vec2(110, 120+20*Index))
    }
if(Index < 1){
    Index = Players:count()
    }
if(Index > Players:count()){
    Index = 1
    }
    

