Why this didn't multiplies as i needed

why this didn’t multiplies as i needed

	while wait(1) do
		money.Value += 1 * MUpgrade.Value * rebs.Value + 1 * x.Value

for example when it just

money.Value += 1 * MUpgrade.Value * rebs.Value + 1

that was giving me right amount of cash

but now with rank multi i can make it giving me right amount of cash
pls help (x = rank multi)

Fix:

money.Value += 1 * MUpgrade.Value * rebs.Value * x.Value + 1

Explanation:
It doesnt multiply properly because multiplication has a higher priority than addition.
that means that basically roblox is doing this:

--do not use this
money.Value += (1 * MUpgrade.Value * rebs.Value) + (1 * x.Value)

so it basically just adds x.Value because its multiplying it with 1, but that isnt what you want it to do.

now im just get +1 and it doesnt multiply from anything

what do you mean
could you explain in a little more detail or provide some code

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.