I'm still learning not quite sure why its not working,
num = game.Workspace.PlayerCount.Players
SniperBattles = game.Lighting.SB
Maps = "SniperBattles"
GameActive = script.GameActive
EnoughPlayers = script.EnoughPlayers
gui = game.StarterGui.Status.TextBox
game.Players.PlayerAdded:connect(function()
gui.Text = ("Welcome to Mini Minigames")
print (num.Value,"players")
end)
function GameRunning()
print("function is working")
if num.Value > 5 then
print "if statment works"
EnoughPlayers = false
gui.Text= ("5 Players Required For Game To Start..")
end
if num.Value >= 5 then
EnoughPlayers = true
gui.Text = ("Game Starting")
wait(5)
end
if EnoughPlayers == true then
GameActive = true
print "game is active"
end
end
GameRunning()
- Aldlus |