Disclaimer: I am a new scripter and this is my first time on this site.
I am creating a tool that when equipped, a gui appears and controls the building. I have done this successfully. But I have ran into a problem, I have a textbutton that won't change the textlabel. I know this script is wrong but how can i fix it... is it a vector3 thing?:
wait(1) local blue = script.Parent local depart = game.Workspace.DeparturesBoardSystem.Screen.SurfaceGui blue.MouseButton1Down:connect(function() depart._01.Information.Airline.Text = Fly Galaxy end)
Thanks in advance! :D
First of all, your script analysis is bugging you now. If you click view on the bar at the top of studio, you'll see a bunch of different buttons. Click Script analysis, and Output. In the output, you'll see an error message, telling you something was wrong with your script. The script analysis will tell you if something was wrong with your syntax, which is what your error is here.
thing.Text = "strings are in quotation marks, like these" print([[they can also be like this]])
Strings will not have your script analysis bug you(unless you have a random string sitting in a random place).
Okay, according to your comment, you have nothing in your script analysis. If what you posted is the entire thing, you have something in your analysis. I copied it into studio, and the analysis bugged me.