Need help with equialing IntValues value being equal to TextLabel Text
script.Parent.Value = script.Parent.Parent.Parent.PERCENTAGE.Text
Need help with equialing IntValues value being equal to TextLabel Text
script.Parent.Value = script.Parent.Parent.Parent.PERCENTAGE.Text
I believe you use tonumber.
script.Parent.Value = tonumber(script.Parent.Parent.Parent.PERCENTAGE.Text)
Nope
If you are converting it to a string, it should actually be to string.
script.Parent.Value = tostring(script.Parent.Parent.Parent.PERCENTAGE.Text)
nope
Have you made sure, that the Text in text-label, is an Int? aka.(A Whole Number!)..e.g(1, 2, 3) not 1/2, 1/6, and the such. @Knqe Yes, you can convert any string number, from string format to number format. But from what it says.."PERCENTAGE". You need to change IntValue, to NumberValue.
Hope This Helped!
None of this worked for me im using values to addon to the textlabel but it wont work
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Any errors?
no
what type of script are you using try using a local script