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:

01local repstorage = game:GetService("ReplicatedStorage")
02local status = repstorage:WaitforChild("StatusValue")
03 
04while true do
05-- intermission
06for i = 30,0,-1 do
07    status.Value = "Intermission: "..i
08wait(1)
09end
10-- game start
11status.Value = "Game in progress"
12local map = game.ServerStorage.Flatlands
13local Lobby = game.ServerStorage.Lobby
14map:Clone().Parent = game.Workspace
15wait(1)
View all 23 lines...

script in top bar:

1local repstorage = game:GetService("ReplicatedStorage")
2local status = repstorage:WaitforChild("StatusValue")
3 
4script.Parent.Text = status.Value
5status.Changed:connect(function()
6script.Parent.Text = status.Value
7end)
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