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)
COMMUNITY QUESTION
Is there a reason why my k/d ratio isn't working? Error: Value says nil when game is ran.
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
from which line is error coming?
There is no error it just comes up with NAN