So I’m using eternitynum and you might need this for an idea
EternityNum Backup - Roblox By Me
here’s the code of the problem this is not the full one.
game.ReplicatedStorage.SeekerCashRemote2.OnServerEvent:Connect(function(seeker)
print(seeker.Name)
local leaderstats = game.Players[seeker.Name]:WaitForChild('leaderstats')
local SeekerRebirths = leaderstats:WaitForChild("Rebirths")
local seekerscash = leaderstats:WaitForChild("Cash")
seekerscash = eTeN.mul(SeekerRebirths.Value, 5e1)
end)
I think you’re trying to change the value, but you’re trying to change the variable
game.ReplicatedStorage.SeekerCashRemote2.OnServerEvent:Connect(function(seeker)
print(seeker.Name)
local leaderstats = seeker:WaitForChild('leaderstats')
local SeekerRebirths = leaderstats:WaitForChild("Rebirths")
local seekerscash = leaderstats:WaitForChild("Cash")
seekerscash.Value = eTeN.mul(SeekerRebirths.Value, 5e1)
end)
did some editing and it now says got
Heres the new code
game.ReplicatedStorage.SeekerCashRemote2.OnServerEvent:Connect(function(seeker)
print(seeker.Name)
local leaderstats = seeker:WaitForChild('leaderstats')
local SeekerRebirths = leaderstats:WaitForChild("Rebirths")
local seekerscash = leaderstats:WaitForChild("Cash")
leaderstats.Cash.Value = EternityNum.add(EternityNum.mul(leaderstats.Rebirths.Value, 5e1), leaderstats.Cash.Value)
print(leaderstats.Cash.Value)
seekerscash.Value = EternityNum.short(leaderstats.Cash.Value)
end)