Hello everyone, i have a basic script that doesnt seem to work, and i spent about 1 hour on it and still cant seem to figure it out, i have tried man methods, but all have failed.
Firstly, its a basic script, only 25 lines of code, the second script has about 5.
Here it is:
-- The Variables
local Status = script.Stats
local clock = 0
local ServerStorage = game:GetService("ServerStorage")
local MapsFolder = ServerStorage:WaitForChild("Maps")
-- INTERMISSION --
while true do
clock = 15 -- How long the intermission lasts
repeat
clock = clock - 1 -- Take away 1 second from the time until it runs out
Status.Value = "Intermission, please wait: "..clock.." Seconds Left!" -- The status value is updated, and the last part is = to the time on the clock
wait(2)
until clock == 0
Status.Value = "Choosing Map..."
wait(3)
Status.Value = "Almost Done!"
local AvailableMaps = MapsFolder:GetChildren() -- Gets all the maps from Server Storage
local ChosenMap = AvailableMaps[math.random(1, #AvailableMaps)]
Status.Value = ChosenMap.Name.." Was Chosen! Starting Game..." -- This wont show up in the gui
end
There is a gui, and a text label. The text label has a local script that goes as:
-- Sets the value of the text in the gui to the value of the Stats in Mainscript
script.Parent.Visible = true
while wait() do
script.Parent.Text = workspace.MainScript.Stats.Value
end
So far, what happens is just what i wanted. A gui at the top of the screen says:
Intermission! Please Wait (number of seconds) left!
and then the gui says
Choosing Map
But for whatever reason, anytime i try to add any other simple line of code JUST like the ones before, it doesnt work.
For some reason, the Almost done gui doesnt show up, why is this? Any kind of Doesnt work, how can i fix this.
EDIT:
Im also not getting any errors when playing the game.

2 comments
Where are you putting the code? If you put the code after the while loop it won't run since scripts run top to bottom and as long as the while loop is running, it won't reach the code under there.
All the code you see there are the entire scripts. The first one is the first script, in workspace. And the second script is the one 6 lines of code, in the text label under screen gui in starter gui.