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

Gui Text Changer Not Working? [Solved]

Asked by 8 years ago

Goal The goal is to change the text of a gui accordingly to the script. Problem The text ends of saying weird stuff, not as intended as the script. Code

   script.Changed:connect(function(Hi)
    if script.Parent.Name == "TalkFrame" then
    script.Parent.Name1.Visible = true
    script.Parent.Name2.Visible = true
    script.Parent.Text1.Visible = true
    script.Parent.Text2.Visible = true
    wait(0.1)
    script.Parent.Name2.Text = "Kyle"
    script.Parent.Text2.Visible = "W-Where am I?"
    wait(1.5)
    script.Parent.Name1.Text = "Kyle"
    script.Parent.Text1.Visible = "W-Where am I?"
    script.Parent.Name2.Text = "Alena"
    script.Parent.Text2.Visible = "Home, You fainted."
    wait(2)
        script.Parent.Name1.Text = "Alena"
    script.Parent.Text1.Visible = "Home, You fainted."
        script.Parent.Name1.Text = "Kyle"
    script.Parent.Text1.Visible = "Oh..."
    wait(3)
    script.Parent.Name1.Visible = false
    script.Parent.Name2.Visible = false
    script.Parent.Text1.Visible = false
    script.Parent.Text2.Visible = false
    script.Parent.Name1.Text = ""
    script.Parent.Name2.Text = ""
    script.Parent.Text1.Text = ""
    script.Parent.Text2.Text = ""
    script:Destroy()
    else print("Bummer")
    end
    end)

Thanks :D

0
What are the weird things that the text ends up saying? User#9949 0 — 8y
3
I think that "script.Parent.Text1.Visible = "Oh..." Is not right... Since Visible can't be equal to words... yoshi8080 445 — 8y
0
Solved it :P pluginfactory 463 — 8y

Answer this question