I have a script made to count down on a timer with a top bar that counts down on an intermission and then deletes the lobby and clones the map under it, so players end up on the map. However,my script doesn't AT ALL, as the top bar doesn't countdown, and the map doesn't spawn, please help.
mainscript:
local repstorage = game:GetService("ReplicatedStorage") local status = repstorage:WaitforChild("StatusValue") while true do -- intermission for i = 30,0,-1 do status.Value = "Intermission: "..i wait(1) end -- game start status.Value = "Game in progress" local map = game.ServerStorage.Flatlands local Lobby = game.ServerStorage.Lobby map:Clone().Parent = game.Workspace wait(1) game.Workspace.Lobby:Destroy() wait(180) --game end Lobby:Clone().Parent = game.Workspace wait(1) game.Workspace.Flatlands:Destroy() status.Value = "Game over" end
script in top bar:
local repstorage = game:GetService("ReplicatedStorage") local status = repstorage:WaitforChild("StatusValue") script.Parent.Text = status.Value status.Changed:connect(function() script.Parent.Text = status.Value end)
I suggest watching alvinblox's videos. He very helpful on that.
I recommend instead of doing get service I would do game.ReplicatedStorage
I don't really use get service for things that can already be found in the explorer