Scripts please help part2

Hey guys its me again Thanks Kondie for giving me the door thingi but im asking how can i script my player please tell me cuz i want to add this
This is the script:

if(playerenters)toweapons Staff/Click Warp;
if(weaponfired)this.on = (this.on +1)%2;
if(mousedown && this.on == 1){

Please tell me how i can script this in my character Thanks

I’m glad you’re on to important things that will make your server more enjoyable for players. Can’t wait to see all those quests!

Please tell me how i can do this


Insert that script into a blank npc in some level. Then enter the level online and you’ll have that weapon.