Why isnt this player script working? The output says attempting to call global start match a nil value. Can someone help me fix this script ?
hint = script.Parent
minplayers = 0
function CheckForPlayers()
end
if game.Players.NumPlayers == minplayers then
hint.Text = "You need at least "..minplayers.." players to start a match."
Countdown()
end
StartMatch()
function StartMatch()
wait (1)
hint.Text = "Starting Match in: 5"
wait(1)
hint.Text = "Starting Match in: 4"
wait(1)
hint.Text = "Starting Match in: 3"
wait(1)
hint.Text = "Starting Match in: 2"
wait(1)
hint.Text = "Starting Match in: 1"
wait(1)
hint.Text = "Starting Match in: 0"
wait(2)
hint.Text = "Starting Match."
wait(1)
hint.Text = "Starting Match.."
wait (1)
hint.Text = "Starting Match..."
wait(1.1)
hint.Text = "Starting Match."
wait(1)
hint.Text = "Starting Match.."
wait (1)
hint.Text = "Starting Match..."
wait(2)
hint.Text = "Starting Match."
wait(1)
hint.Text = "Starting Match.."
wait(1)
hint.Text = "Starting Match..."
wait(1.1)
hint.Text = "Starting Match."
wait(1)
hint.Text = "Starting Match.."
wait (1)
hint.Text = "Starting Match..."
end
StartMatch()
function Countdown()
local i = 30
while i > -1 do
wait (1)
hint.Text = "Intermission: " .. i
i = i - 1
end
hint.Parent.Visible = true
end
Countdown()
