What do you want to achieve? Keep it simple and clear!
I want to know how to convert a number value into a string.
What is the issue? Include screenshots / videos if possible!
I don’t know how to, but I know you have to use tostring()
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Yes, I’ve tried but not sure how you would implement into this code.
Basically I’m trying to see if a player’s kill is a larger then every other players kill. And in order to do that I need to get their kill value, but I’m not sure how I would covert the numberValue into a string.
This is my code.
if #plrs[1].leaderstats.Kills.Value > plrs.leaderstats.Kills.Value then
I’m not sure where about I would convert it into a string.
Ok, I’m not sure if I’m doing it right but if I did my code above, the output would print
[attempt to get length of a number value]
Why is this the case?
In Lua numbers aren’t objects. You would just use tostring(Kills.Value) but here it isn’t necessary. Although OP should have asked about their problem (getting the player with the most kills) rather than their attempted solution (turning a NumberValue into a string)