For Example : When i change the intvalue value to "Hello", the text label text will also become "Hello", Please help me figure that out
COMMUNITY QUESTION
How Do you Make an IntValue Same as the Text Label?
2 answers
Uh i don't really know the parent or location of the script nor intvalue nor the text so you need to change the parent to your working things but here:
local v = script.Parent.intvalue
local t = script.Parent.Text
v.Changed:Connect(function()
t = v.Value
end)
IntValues are used to store 32-bit integers, also known as numbers. Trying to store a string in an IntValue will not work. In this case, you'll need a StringValue instead.
local value = StringValue --Navigate to the StringValue
local textlabel = TextLabel --Navigate to the TextLabel
value.Changed:Connect(function()
textlabel.Text = value.Value
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
