|
| 18 Jul 2013 10:36 PM |
I want it to display KDR or Kill Death Ratio on a text gui.
plyr = game.Players.LocalPlayer
kill, death = plyr.leaderstats:findFirstChild("KOs"), plyr.leaderstats:findFirstChild("Wipeouts")
while wait(5) do Gui.Text = kill.Value / death.Value; end
|
|
|
| Report Abuse |
|
|
|
| 18 Jul 2013 10:37 PM |
plyr = game.Players.LocalPlayer
kill, death = plyr.leaderstats:findFirstChild("KOs"), plyr.leaderstats:findFirstChild("Wipeouts")
while wait(5) do script.Parent.Text = kill.Value / death.Value; end
-- I meant to put that |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
|
| 18 Jul 2013 10:42 PM |
Ya should work fine. But just to make sure that the script won't error for attempting to put a number value on the text instead of a string...
Use tostring(kill.Value/death.value) |
|
|
| Report Abuse |
|
|
| |
|
kinglime
|
  |
| Joined: 27 Jun 2008 |
| Total Posts: 2751 |
|
|
| 18 Jul 2013 11:00 PM |
| What doe using that " / " do? |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2013 12:01 PM |
| Divides the kills by deaths |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2013 12:03 PM |
Gui.Text = kill.Value .. "/" .. death.Value
*Tell me about the rabbits, George* |
|
|
| Report Abuse |
|
|
|
| 19 Jul 2013 12:14 PM |
| I want it to display a number like, if you had 10 kills and 2 deaths it would be 5 not 10/2 |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 19 Jul 2013 12:15 PM |
^
Not above. He wanted to divide. And that isn't a string. It is a script itself. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|