#EternityNum
12 messages · Page 1 of 1 (latest)
I don't understand, but if you say I need to change vl.Value to vl, I tried it and it didn't work.
Oh nevermind lol, thought it was something else.
Does Value have a value that’s not nil?
the value inside Value is 1
Hm. What’s on line 315 of EternityNum?
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
Just warning you, I will have to go soon so hopefully someone else can help if it doesn’t get resolved.
ok
line 315 = return Value.Layer .. ";" .. Value.Exp
in the function
It looks like Value.Layer and/or Value.Exp are nil…
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.
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)