Hi. I am working on a Text board and the script isn’t working, nothing also appears in Output.
I’ve tried changing the script by adding WaitForChild’s but nothings working. This is my script:
local WantedText = ("Example Text")
local WantedText1 = ("More Example Text")
local DefultText = ("Click the button to start")
local Button = script.Parent.StartButton.Button
local ChangeText = script.Parent.SurfaceGui.TTest
function Change1()
if script.Parent.first.Value == 1 then
ChangeText.Text = WantedText
script.Parent.first.Value = 2
print("Worked!")
end
end
function Change2()
if script.Parent.first.Value == 2 then
ChangeText.Text = WantedText1
wait(15)
script.Parent.first.Value = 1
script.Parent.SurfaceGui.TTest = DefultText
print("Worked!")
end
end
Button:WaitForChild("ClickDetector1").MouseClick:Connect(Change1)
Button:WaitForChild("ClickDetector1").MouseClick:Connect(Change2)
Whenever I press the button nothing happens and the text never appears. You can change the whole text if you want I just want to find a solution to this.