Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help with equaling values to textLabels help???

Need help with equialing IntValues value being equal to TextLabel Text

script.Parent.Value = script.Parent.Parent.Parent.PERCENTAGE.Text

3 comments

0

Any errors?

0

no

0

what type of script are you using try using a local script

4 answers

I believe you use tonumber.

script.Parent.Value = tonumber(script.Parent.Parent.Parent.PERCENTAGE.Text)

1 comment

0

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)

1 comment

0

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.