My script doesn't work

If you know that line 12 is the issue, why don’t you change it? I would assume that what you meant to do instead of line 12 was:

local leaderstats = player:FindFirstChild("leaderstats")
if not leaderstats then return end
local class = leaderstats:FindFirstChild("Class")

Also, I know I said that the best way to script / learn is to do it the way that works the best for you, however I really do think that the base code I provided you with yesterday would b a lot simpler (not to talk about the memory leak that you have added into it by using that while loop).

20:28:36.255 Workspace.LavaZone.Lava.Script:33: attempt to perform arithmetic (mul) on number and nil - Server - Script:33

Did you add the print statement? I’m looking for what these values are not the error. The issue is that the 2nd move cannot be converted to a number making it nil

Yes, I added the print and posted the error above.

I understand that there is a mistake in the class, it is a string value, but the script thinks that it is a number value.

Why not test the game, go in explorer and check what are the values of “class” and “eMulti”.

String value Class eMulti Number Value

This is their type, I want their values. Each one of them has a “Value” property. For this to work, both their values have to be numbers.

I forgot to tell you eMulti This is a multiplier that a local player can buy for coins to get a bigger multiplier, but the classes there are nothing, this is a class, it’s like a rebirth

Classes can be upgraded with stats

Why is eMulti a string then? You should set it to a number if its a multiplier

Well, if it’s a multiplier, it needs a number to be assigned to its value.

Then you have to give the class a numerical value for the property you are achieving, e.g. strength.

Class the String value and eMulti Number Value

I can’t change classes from String Value On number value

Ok so what does the string value equal if you set it to something?

Do you mean in the leader stats?

Maybe I should upload the leaderstats here?

Yes. What does the class value equal or what do you set it to? Also, post the leader stats code you use to set it up

Screenshot the properties of your values.