@kingofmk98 what the hell you did there!
;Artificial Intelligence Script
;Header
desc = When I'm near the entity the hud will show
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\papernotes\example1.png,hudname=paperscript,hudhide=1,hudmake=display,state=11
;this line is useless, no other line go to this
:state=10,plrdistwithin=40:hudshow=paperscript,hudfadeout=paperscript
;this must be state=0 and of coures it is useless, because no other line go to this line
:state=1:hudreset,hudx=50,hudy=90,hudsize=18,hudtext=Press F to pick up this weapon,hudname=WEAPONPROMPT,hudhide=1,hudmake=display,state=11
;usefull line, but you have the hudname of the false line, so it must be hudname=paperscript
:state=11,plrdistwithin=40:hudshow=WEAPONPROMPT,state=12
;first to state=12 so the line go not to state=11
:state=12,plrdistfurther=40:hudunshow=WEAPONPROMPT,state=12,state=11
;Player Press F key
:state=12,scancodekeypressed=33:hudunshow=WEAPONPROMPT,playertake,coloff,rundecal=-1,plrsound=audiobank\items\pickupweapon.wav,state=14
;End of Script
@Liquid Blaze here is my version of this script if i understand you right this is what you want
;Artificial Intelligence Script
desc = Press F key to pick up
;If player presses F key, weapon will be picked up, and added to player's weapon inventory.
;Triggers
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\papernotes\example1.png,hudname=paperscript,hudhide=1,hudmake=display,state=1:
:state=1,plrdistwithin=40:hudshow=paperscript,state=2
:state=2,plrdistfurther=50:hudunshow=paperscript,state=1
;Player Press F key
:state=2,keypressed=33 1:hudunshow=paperscript,playertake,coloff,plrsound=audiobank\items\pickupweapon.wav,state=3
;End of Script
Public void likeFpsc{ System.out.println("I like FPSC!" ) ;}
http://forum.thegamecreators.com/?m=forum_view&t=196656&b=24