I want a label to display the text stated in a scrips, what am I doing wrong?
Scrpit 1 (LocalScript):
local gameStatus = game.ReplicatedStorage:WaitForChild("GameStatus")
local statusLabel = script.Parent:WaitForChild("StatusLabel")
local function updateLabel()
local status = gameStatus.Value
statusLabel.Text = status
end
gameStatus:GetPropertyChangedSignal("Value"):Connect(updateLabel)
Script 2:
local gameStatus = game.ReplicatedStorage:WaitForChild("GameStatus")
local LobbyCFrame = workspace:WaitForChild("Lobby"):WaitForChild("SpawnLocation").CFrame + Vector3.yAxis+5
local Intermission = 10
while true do
--Intermission
for countdown = Intermission, 0, -1 do
gameStatus.Value = "Intermission" .. countdown
task.wait(1)
end
--Choose Minigame
--Run Minigame
--End Minigame
end
** You are now Level 1! **