Thanks for your reply. Thing is, I did exactly that (that’s almost my code 1to1). And it works if I put that code anywhere in an itemScript. But it’s not working in a gameScript. I suspect the gameScript is not active, even though I assigned it to the project.
Is that script you posted an item/charScript or a gameScript?