Iv tried many methods but i cant get it to work. Like i said earlier on the forums, im new to scripting its hard for me to understand, i understand this and what it does but its hard for me to apply it to anything and im trying to learn, anyways heres the script and the problem
So when i divide to values onto a text, depending on what u divide, there are so many digits as a decimal like 6.432467654312432552, is there a way to make it so only 3 digits are shown like this 4.52? Heres my script:
Kills = script.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.Kills.Value
Deaths = script.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.Deaths.Value
while true do
script.Parent.Text = ""..string.format("%.2f",tostring(Kills/Deaths)");
wait()
end
|