Quote:
|
player.addWeapon("WEAPONNAMEHERE");
Only works serverside so make a case and do a triggerserver.
|
His whole script is serverside. No point in making it clientside, eh?
Anyway, first off, make sure you got the script you posted somewhere in a level npc, not inside a weapon. Also, make sure that the weapon "Event/Hug" actually exists and has got at least a tiny bit of code which fires when the weapon is added, so you know buying it actually worked. If both apply, everything should work fine. If not, you are probably still doing something wrong. Maybe write a more detailed description for us? Or even provide the code of the weapon, might help. All up to you.