Rookie Question:
Running the following Lua in a normal script results in a TextBox with the text "TextBox" but running it with a localscript results in a TextBox with the text "Please enter text here"
1 | local player = game.Players.GoldAngelInDisguise |
2 | local screenGui = Instance.new( "ScreenGui" , player.PlayerGui) |
3 | local textBox = Instance.new( "TextBox" , screenGui) |
4 | textBox.Size = UDim 2. new( 0 , 100 , 0 , 100 ) |
5 | textBox.Position = UDim 2. new(. 5 , - 50 , . 5 , - 50 ) |
6 | textBox.Text = "Please enter text here" |
I know it would make sense to just use a localscript instead but I want to bypass FE
Btw I am running this on the game Void Script Builder (Place 1) as a test
I have tried researching similar questions but could not find one. Created this account hoping to find an answer. Thanks!
Answered Solution: Adding a wait() before changing the text works! Thanks for the help!