I'm not a person who scripts a lot. I'm trying to make a script that enables a GUI when a player touches a brick, counts down the text, and disables the GUI. For some reason the GUI will not appear.
S = game.StarterGui.SpeedGUI
T = game.StarterGui.SpeedGUI.MainFrame.Time
function Ontouched(hit)
S.Enabled = true
T.Text = "15 Seconds"
wait(1)
T.Text = "14 Seconds"
wait(1)
T.Text = "13 Seconds"
wait(1)
T.Text = "12 Seconds"
wait(1)
T.Text = "11 Seconds"
wait(1)
T.Text = "10 Seconds"
wait(1)
T.Text = "9 Seconds"
wait(1)
T.Text = "8 Seconds"
wait(1)
T.Text = "7 Seconds"
wait(1)
T.Text = "6 Seconds"
wait(1)
T.Text = "5 Seconds"
wait(1)
T.Text = "4 Seconds"
wait(1)
T.Text = "3 Seconds"
wait(1)
T.Text = "2 Seconds"
wait(1)
T.Text = "1 Second"
wait(1)
S.Enabled = false
end
I think it has something to do with function Ontouched(hit) but I'm not sure.
