Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
KSFang 5
8 years ago

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)

0
Any errors? 262187 45 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago

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

0
Sycro, thats where i got alot of it from, and i tweaked it to work a little better, but clearly not xD KSFang 5 — 8y
Ad
Log in to vote
0
Answered by 8 years ago

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

Answer this question