game.Players.PlayerAdded:Connect(function(Player)
local kdratio = Instance.new("NumberValue",Player)
kdratio.Name = "KillDeath"
local leader = Player:WaitForChild("leaderstats")
local ratio = leader:WaitForChild("Deaths").Value / leader:WaitForChild("Deaths").Value
local finalratio = math.floor(ratio * 100)/100
kdratio.Value = finalratio
end) 

2 comments

0

from which line is error coming?

0

There is no error it just comes up with NAN