Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Changing a surfacegui textlabel from a tooled gui?

Asked by 8 years ago

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

1 answer

Log in to vote
0
Answered by
theCJarmy7 1293 Moderation Voter
8 years ago

That's not a string

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.

0
Sorry, im a very new beginner. I have no idea what a string is and my script analaysis is not showing any errors. 0mrlight0 40 — 8y
Ad

Answer this question