It was working before, but now I keep getting an error, "fullGui is not a member of playerGui"
--Made by Aceta
local players = game.Players:GetPlayers()
local timeleft = Workspace:findFirstChild('time')
local piece = Workspace.teleportationpart
local currentMap = Workspace.currentMap
function removeTime()
for i = 120, 0, -1 do
wait(1)
timeleft.Value = i
end
end
function gameStart()
local players = game.Players:GetPlayers()
for i = 1, #players do
Spawn(function()
local stats = players[i].PlayerGui.fullGui.everything.gamePlay.informer
stats.Text = 'New round beginning!'
stats.FontSize = 'Size24'
timeleft.Value = 120
wait(1)
stats.Text = ''
end)
end
end
function teleportPlayers()
local players = game.Players:GetPlayers()
for i = 1, #players do
Spawn(function()
local piece = Workspace.teleportationpart
players[i].Character.Torso.CFrame = CFrame.new(piece.Position+Vector3.new(
math.random(1,15),
math.random(2,6),
math.random(1,15)))
players[i].Character.Torso.Anchored = true
end)
end
end
function countdown()
local players = game.Players:GetPlayers()
for i = 1, #players do
Spawn(function()
players[i].NameDisplayDistance = 0
players[i].HealthDisplayDistance = 0
players[i].CameraMaxZoomDistance = 0.5
local stats = players[i].PlayerGui.fullGui.everything.gamePlay.informer
stats.Text = '3'
wait(1)
stats.Text = '2'
wait(1)
stats.Text = '1'
wait(1)
stats.Text = 'Begin!'
stats.FontSize = 'Size48'
wait(2)
stats.Text = ''
wait(1)
stats.Text = 'Objective: Find a weapon. '
stats.FontSize = 'Size36'
players[i].Character.Anchored = false
end)
end
end
function waitSome()
local players = game.Players:GetPlayers()
for i = 1, #players do
Spawn(function()
players[i].NameDisplayDistance = 100
players[i].HealthDisplayDistance = 100
players[i].CameraMaxZoomDistance = 400
local stats = players[i].PlayerGui.fullGui.everything.gamePlay.informer
stats.FontSize = 'Size24'
stats.Text = "Let's take a quick break. Use this time to buy stuff in the shop!"
wait(30)
stats.Text = ''
end)
end
end
function endGame()
local players = game.Players:GetPlayers()
for i = 1, #players do
Spawn(function()
players[i]:LoadCharacter()
end)
end
currentMap:ClearAllChildren()
end
function goAhead()
local players = game.Players:GetPlayers()
for i = 1, #players do
Spawn(function()
players[i].PlayerGui.fullGui.everything.gamePlay.informer.Text = 'We have enough players to start!'
end)
end
wait(5)
end
function chooseMap()
local maps = game.ServerStorage.Maps
local clone = maps[math.random(1,#maps)]
clone.Parent = currentMap
end
while wait() do
if game.Players.NumPlayers >= 2 then
goAhead()
chooseMap()
gameStart()
teleportPlayers()
countdown()
removeTime()
endgame()
waitSome()
else
local players = game.Players:GetPlayers()
for i = 1, #players do
Spawn(function()
players[i].PlayerGui.fullGui.everything.gamePlay.informer.Text = '2 players are needed to start! Invite a friend and we can begin.'
end)
end
end
end

1 comment
What's the stack information, meaning what did the output say in blue text with line numbers? If it includes a function, please put the function. This helps cut down significantly the number of lines we review to help you, making our job easier and more and quicker responses for you.