Can somoene explain this calculation to me

can u explain to me what this means or what it does
if u.Value >= 10^levu.Value then
levu.Value = levu.Value + 0.010000000000000000000000000000

I’m just going to format it so it looks cleaner:

if u.Value >= 10 ^ levu.Value then
    levu.Value = levu.Value + 0.01
end

I will explain the parts of the code:

if u.Value >= 10 ^ levu.Value then

This means that if the value of u is bigger than 10 to the power of the value of levu then this statement will pass

levu.Value = levu.Value + 0.01

when the statement passes, this line simply adds 0.01 to the value of levu, for example, if levu was 1, it’s now 1.01

2 Likes

i got this

game.Players.PlayerAdded:connect(function(p)

local stats = Instance.new("NumberValue", p)

stats.Name = "leaderstats"

local m = Instance.new("StringValue", stats)

m.Name = "Money"

m.Value = 5

local mu = Instance.new("StringValue", stats)

mu.Name = "Multiplier"

mu.Value = 1

local Reb = Instance.new("NumberValue", stats)

Reb.Name = "Rebirths"

Reb.Value = 1

local u = Instance.new("NumberValue", stats)

u.Name = "Ultra"

u.Value = 1

local r = Instance.new("NumberValue", stats)

r.Name = "Reb"

r.Value = 1

local me = Instance.new("NumberValue",stats)

me.Name = "Mega"

me.Value = 1

local p = Instance.new("NumberValue",stats)

p.Name = "Prestige"

p.Value = 1

local up = Instance.new("NumberValue",stats)

up.Name = "UltraPrestige"

up.Value = 1

local l = Instance.new("NumberValue",stats)

l.Name = "Lives"

l.Value = 1

local lev = Instance.new("NumberValue", stats)

lev.Name = "Level"

lev.Value = 1

local money = Instance.new("NumberValue", stats)

money.Name = "Cash"

money.Value = 1

local multi = Instance.new("NumberValue", stats)

multi.Name = "Multi"

multi.Value = 1

local levc = Instance.new("NumberValue", stats)

levc.Name = "Levelc"

levc.Value = 0

local levm = Instance.new("NumberValue", stats)

levm.Name = "Levelm"

levm.Value = 0

local levr = Instance.new("NumberValue", stats)

levr.Name = "Levelr"

levr.Value = 0

local levu = Instance.new("NumberValue",stats)

levu.Name = "Levelu"

levu.Value = 0

local levp = Instance.new("NumberValue",stats)

levp.Name = "Levelp"

levp.Value = 0

local levup = Instance.new("NumberValue",stats)

levup.Name = "Levelup"

levup.Value = 0

local player = game.Players.Name

while true do

wait(0.1)

money.Value = money.Value + multi.Value

lev.Value = levc.Value + levm.Value + levr.Value + levu.Value + levp.Value + levup.Value

m.Value = "$"..money.Value

mu.Value = "x"..multi.Value

r.Value = Reb.Value

p.Value = p.Value

u.Value = u.Value

up.Value = up.Value

if money.Value >= 100^levc.Value then

levc.Value = levc.Value + 0.0100000000000000000000000

end

if Reb.Value >= 40^levr.Value then

levr.Value = levr.Value + 0.01000000000000000000000000

end

if multi.Value >= 20^levm.Value then

levm.Value = levm.Value + 0.010000000000000000000000000000

if u.Value >= 10^levu.Value then

levu.Value = levu.Value + 0.010000000000000000000000000000

end 

what does it change

Can you elaborate on, “what does this change”?

becose i am looking to give Ultra Prestige a boost like x2 multi but i dont know how this happens but prestige has a x2 boost how in this script does it work

I don’t really know, sorry for the late response. I’m certain you’ve got it as a free model from the toolbox. Please try making a script yourself from tutorials from Youtube. Sorry I couldn’t help, because the code is kind of confusing.