Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Game Not Working?

Asked by 8 years ago

I have made this script: After line 25, things stop working. I am getting no issues from output or Script Analysis. Help?

local playerstorage = game:GetService("Players")
local storage = game:GetService("ServerStorage")
local guifolder = storage.Guis
local players = {}
local message = game.Lighting.Message



while true do
    if script.Disabled == false then


    message.Value = "Welcome to Alien Asassination!"
    wait(3)
for _, player in pairs(game.Players:GetPlayers()) do
  local humanoid = player.Character:WaitForChild("Humanoid")
  if humanoid and humanoid.Health > 0 then
    table.insert(players, player)
  end
end
    if #players >= 2 then

       local timer = 30     

        while timer > 0 do
        message.Value = "Intermission: (" .. timer .. ")"
        wait (1)
end
    script.G.Disabled = false
    else
print '2 players needed!'

message.Value = "2 Players Needed to Play."
players = {}
wait(3)
    end
    end
    wait(0.1)
end

Answer this question