of     1   

Aldlus
#224084946Tuesday, August 22, 2017 6:36 PM GMT

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
Aldlus
#224085019Tuesday, August 22, 2017 6:38 PM GMT

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 these if statements don't work the rest is fine - Aldlus
KeysOfFate
#224085308Tuesday, August 22, 2017 6:46 PM GMT

does the variable 'Maps' = the variable 'SniperBattles' or is there something else with the name sniper battles.
Carrix
#224085421Tuesday, August 22, 2017 6:49 PM GMT

Is there a textbox in the gui? cause you need to add that then change the #### ## the textbox. example gui.Textbox.Text = ('5 Players Required For Game To Start..') could be different problem
Carrix
#224085466Tuesday, August 22, 2017 6:50 PM GMT

oops, roblox filter
KingKamII
#224085501Tuesday, August 22, 2017 6:51 PM GMT

"num = game.Workspace.PlayerCount.Players" Instead, try players = game.Players:GetChildren() num = #players A wise man once told me that life is a mirror...
Aldlus
#224390651Tuesday, August 29, 2017 2:41 PM GMT

nope still trying to figure this out updated attempt: players = game.Players:GetChildren() num = #players 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,"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 - Aldlus

    of     1