Originally Posted by Kygo
|
Originally Posted by Sjak
BUFF_HEIGHT is giving a nil value because it's defined as a local in the spawn function so it won't be accessible inside of other functions. If you move it out of the spawn function to the top of the file then it should work fine.
|
Yes, this. I wrote it all in one file and then copy/pasted the blocks into my post... missed that bit in the first block, apparently.
Originally Posted by Kygo
Had to swap out your "self" into frame because I don't have "self" defined anywhere.
|
Originally Posted by Sjak
"Self" doesn't need to be defined because it's a parameter of the function. I'm not great at explaining things so it's probably best just to read this to understand why you use "self".
|
No, it does actually need to be "frame" here, as his code is using that instead of the more traditional "self" in that parcitular context.