Im trying to make a game that you need exp to level up and I want to get the percent of how much exp they have. I put this line of code in part of my script but i keep ending up with -nan(ind)
local xp = player:WaitForChild("plrInfo"):WaitForChild("EXP")
local xpneeded = player:WaitForChild("plrInfo"):WaitForChild("XPNeeded")
local percentage1 = xp.Value/xpneeded.Value
print(percentage1)
local percentage2 = percentage1*100
print(percentage2)
local percentage3 = math.floor(percentage2)
print(percentage3)
label.Text = percentage3.."%"

2 comments
Could you post what prints for the other percentages? You may also have to use tostring() on percentage since it's a number value.
your math is right