Hello, I have found a solution to your problem.
First of all, you can not access the StarterGui through script as it gets later changed to PlayerGui as you join in game. ROBLOX just decided to do it this way, which is one of the most common mistakes in beginner scripting. Even I got frustrated, but, it's not as hard as you think.
Firstly, insert a LocalScript inside your TextLabel.
Secondly, open it up, and start typing your wait(3) function.
Thirdly, type in your script.Parent line, which is your line of code, if you don't understand, just type this.
LocalScript :
script.Parent.Text = "But it was me, Dio!"
Okay so now that we have finished that, I get confused on why you added an end). If you're using that end) for the wait loop, remove it. If you're using it for a function of code in a function, let me know, as I'm struggling to find out why you have added an end)?
Okay, hopefully this helped, let me know if it has, thanks!
Tip : If this answer has helped you or someone else you know, let TheOnlySmarts know that he helped you successfully by pressing 'Accept Answer' below! Doing this will also give you both positive reputation!
2 comments
Are you trying to change the players Gui, or the starterGui? If its the players, then you need to use a local script inside the gui and change "game.StarterGui" to "player.PlayerGui".
or remove the wait