Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I get my round system and intermission timer to work?

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)

1 comment

0

Any errors?

2 answers

I suggest watching alvinblox's videos. He very helpful on that.

1 comment

0

Sycro, thats where i got alot of it from, and i tweaked it to work a little better, but clearly not xD

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

This discussion is preserved as it was. New answers, comments, and votes are closed.