SANYAA_BL9
(DontBreathIFarted)
#1
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)
leoburk
(CannedWither)
#2
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.
SANYAA_BL9
(DontBreathIFarted)
#3
now im just get +1 and it doesnt multiply from anything
leoburk
(CannedWither)
#4
what do you mean
could you explain in a little more detail or provide some code
system
(system)
Closed
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.