player.leaderstats.SP.Value = player.leaderstats.SP.Value + 50 * (player.leaderstats.SodaLevel.Value)
why doesn't this work?
player.leaderstats.SP.Value = player.leaderstats.SP.Value + 50 * (player.leaderstats.SodaLevel.Value)
why doesn't this work?
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
First, when you post code on this side, make sure to put it in a code block. So highlight what you have there and click that lua logo button you see at the top of the editer.
I'm pretty sure its because you are multiplying 50 with "player.leaderstats.SodaLevel.Value" when you really want to add 50 to "player.leaderstats.SP.Value" then multipy by "player.leaderstats.SodaLevel.Value". But im not sure if thats what your going for.
Go to the output, send the error if there is please, there are multiple possibilities what can be the issue and when we know what is the issue we can easily fix it. Also by why doesnt it work you mean that it does not add anything or it adds different amount that you need? Describe it more please. Thanks