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

Is it possible to make two TextLabels copy the text of a TextLabel parent?

1 answer

✓ Accepted answer

It is possible. All we need to do is set the child's text as the parent's text, like this:

Child.Text = Parent.Text

In your case, I think it's supposed to be like this:

Insert a LocalScript into the Amount

local Amount = script.Parent

-- // Since your outline's name are the same, we're gonna use a for loop

for i,v in pairs(Amount:GetChildren()) do
	if v:IsA("TextLabel") and v.Name == "outline" then
		v.Text = Amount.Text
	end
end

I'm not sure what exactly you're trying to make, but this code is just an idea of how it's gonna work.

1 comment

0

ah thanks dude!

This discussion is preserved as it was. New answers, comments, and votes are closed.