so i've made the following code
local starterRebirthAmount = 5000
replicatedStorage.Remotes.Rebirth.OnServerInvoke = function(player)
if not remoteData:FindFirstChild(player.name) then return "NoFolder" end
local rebirths = player.leaderstats.Rebirths
if player.leaderstats.Rebirths >= ( math.floor((starterRebirthAmount + (rebirths.Value) * math.sqrt(5000000))))then
rebirths.Value = rebirths.Value + 1
player.leaderstats.Magic.Value = 0
player:LoadCharacter()
the starterRebirthAmount is a number and so is rebirths.Value, how can one of them be an instace
Sorry by my english it's not my mother language

1 comment
You forgot to reference the Value of rebirths, and why in the world would you need the square root of five million??