Background: Once some text appears on-screen, I want a separate thing thing of text to appear. So I decided to use :connect() to make the next function go after the first.
Code:
--Some stuff above here that makes stuff happen and activates what's below.
Txt = Instance.new("TextBox", scrl)
Txt.Position = UDim2.new(0.1, 0,0.2, 0)
Txt.BackgroundTransparency = 1
Txt.Size = UDim2.new(0.75, 0, 0.56, 0)
Txt.Font = 4
Txt.FontSize = 7
Txt.TextYAlignment = ("Top")
Txt.TextWrapped = true
Txt.Text = ("My text goes here")
Txt.Changed:connect(Response)
end
function Response()
Rpns = Instance.new("TextButton", scrl)
Rpns.Position = UDim2.new(0, 40,0.78, 0)
Rpns.Size = UDim2.new(0.75, 0,0, 10)
Rpns.BackgroundTransparency = 1
Rpns.Font = 1
Rpns.FontSize = 4
Rpns.TextColor3 = Color3.new(255, 0, 0)
Rpns.AutoButtonColor = false
Rpns.Text = ("My response goes here")
end
Problem: However, since I used the Changed event (since it was the only one I could think of to use to activate the :connect()) for some reason it makes two identical Textbuttons appear. They are in the same position and everything. Why is this happening, and how do I fix it?

2 comments
I tried your first method, but it didn't seem to solve the problem. In fact, it actually made 4 appear instead of 2.
Did you try the second method?