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

Help With A Textbox Script?

Asked by
Scootakip 299 Moderation Voter
9 years ago
gmbox = script.Parent.Frame.TextBox
gm = game.Workspace.GMstat.Intermission

while gm.Name == "Intermission" do
    gm.Text = "Intermission"
    wait()
end

I have no idea why this isn't working, but I really need help with it. The text is just stuck as TextBox for some reason. And yes, the gm name is Intermission so I don't know why it isn't changing.

0
I don't actually see where you've attempted to change the Text in TextBox to Intermission. To me it looks like you've attempted to change gm's text to Intermission neoG457 315 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago
gmbox = script.Parent.Frame.TextBox
gm = game.Workspace.GMstat.Intermission

while gm.Name == "Intermission" do
    gmbox.Text = "Intermission" -- you didn't change the text of gmbox, you changed the Text of gm... If you checked output, you would've seen it...
    wait()
end

0
I feel like an idiot... Thanks Scootakip 299 — 9y
Ad

Answer this question