Rebirth system not working

I’m setting up a rebirth system and need help, i tried this code: strengthToRebirth.Text = “You need at least “…math.floor{(starterRebirthAmount + (rebirths.Value) * math.sqrt(50000000))}…” strength to rebirth”

But, i receive: Players.emily08211234.PlayerGui.Main.MainButton.LocalScript:23: bad argument #1 to ‘floor’ (number expected, got table)

I have no idea what to do, I do have everything defined.

Thanks, George

2 Likes

Change the curly braces to parenthesis.

6 Likes

What you did was put brackets after the math.floor statement.

math.floor(starterRebirthAmount + (rebirths.Value) * math.sqrt(50000000))

3 Likes

Also this might not be solving the problem, but instead of doing 50000000 you could do 5e7 or 5*10^7. its more convenient.

2 Likes