Hi I'm trying to make a surface Gui show a humanoids health, the problem, I think, is that for the Surface Gui (Im using a Label) it needs a string but im giving it a int (Humanoid Health). Please help! How can I either turn a string to int or int to string, and if there is a eaiser way please tell me! Thanks!
COMMUNITY QUESTION
Surface Gui's and Humanoid Health?
1 answer
Since, more than likely, the surface GUI is going to be a read-only display of the humanoid's health, you don't really need to convert a string to an integer or vice-versa, unless if you're using the Text property of a TextLabel (though, I personally recommend to use the Health value directly from the Humanoid).
Nonetheless...
tostring(arg) converts the given argument into a string.
tonumber(arg) converts the given argument into a number.
1 comment
0
Thanks! Would vote up but people and admins hate me and i have -11 rep
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
See my answer to this question: https://scriptinghelpers.org/questions/14055/how-do-you-convert-a-number-value-into-a-string