local WaitingForPlayersEvent = game.ReplicatedStorage.WaitingForPlayersEvent
local Values = game.ReplicatedStorage:WaitForChild("Values")
local PlayersLeft = Values:WaitForChild("PlayersLeft")
local TimerLeft = Values:WaitForChild("TimeLeft")
local WaitingFrame = script.Parent.WaitingFrame
WaitingForPlayersEvent.OnClientEvent:Connect(function(Text)
WaitingFrame.PlayersLeft.Text = Text
end)
TimerLeft:GetPropertyChangedSignal("Value"):Connect(function()
if TimerLeft.Value == "0" then
WaitingFrame.Visible = false
else
WaitingFrame:TweenPosition(UDim2.new(0,0,0,0),.1)
WaitingFrame.TimeLeft.Text = TimerLeft.Value
end
end)