#EternityNum

12 messages · Page 1 of 1 (latest)

jaunty kernel
#

Is the script already located inside the value you’re trying to get/v1? if you, instead of doing v1.Value you can just do v1 since you already got the value when defining it

hard ginkgo
jaunty kernel
#

Oh nevermind lol, thought it was something else.

Does Value have a value that’s not nil?

jaunty kernel
#

Hm. What’s on line 315 of EternityNum?

hard ginkgo
#
function EN.toString(Value: EN) : string
    if EN.IsNaN(Value) then return "NaN" end
    if EN.IsInf(Value) then return "Inf" end
    return  Value.Layer .. ";" .. Value.Exp
end
jaunty kernel
#

Just warning you, I will have to go soon so hopefully someone else can help if it doesn’t get resolved.

hard ginkgo
jaunty kernel
hard ginkgo
#

Yes, but idk he script works before the value reaches 1000, so it gets to 1k. If it's 5 and we add 1, it become 6, but if it's 999 and we add 1, it become 1k but if we add +1 to 1k, it causes the error.

hard ginkgo
#

i solved it :

local plr = script.Parent.Parent.Parent.Parent
local button = script.Parent
local vl = script.Parent.Value
local stat = plr.leaderstats.Value
local endnumb = 0

local EN = require(game.ServerScriptService.EternityNum)

button.MouseButton1Click:Connect(function()
    endnumb += vl.Value
    stat.Value = EN.short(endnumb)
end)