Why do I need to add after .Value after I already defined it at the beginning of the script?
I had this script that is supposed to check to see if you are below lvl 0, and make you lvl 1, my first script, this:
1 | local lvl = plr.leaderstats.levels.Value |
2 | local xp = plr.leaderstats.xp.Value |
didn't work, but then I just started messing around to try and get it to work and stumbled upon a working solution, but I have no clue why it works, and the original one doesn't, here's my working code:
1 | local lvl = plr.leaderstats.levels |
2 | local xp = plr.leaderstats.xp |
Can anybody explain to me why I couldn't define the .Value at the top of the script, and had to define it every time?