I have made a textbutton that covers all across the screen and when you click it... here is the code,
script.Parent.MouseButton1Click:connect(function()
game.StarterGui.ScreenGui.TextBox.Text = game.StarterGui.ScreenGui.TextBox.Text + 1
end)
Since TextBox is not a value I am confused on how I change the Text of textBox to add 1 when the textbutton (that covers the whole screen) is clicked. The problem is though is that it looks like this in explorer in studio.. game>StarterGui>ScreenGui>Textbutton>Script and then game>StarterGui>ScreenGui>TextBox... Is this right or should they both be in the same screen gui? They are both in opposite screen GUIs in the StarterGui. Is this right?

1 comment
He can use a variable, not should different methods for the same thing, however if he needs to call it from another script would a variable not be easier?