This error came from two scripts.

1st Script:

wait(1)
while game.ServerScriptService.Playing.AlivePlayers.Value > 0 do		
	local list = workspace.Map.CS:GetChildren()
    m = list[math.random(#list)]
	for i, v in pairs(game.Players:GetChildren())do
		v.PlayerGui.ScreenGui.ColorFrame.Frame.BackgroundColor3 = m.Color
		v.PlayerGui.ScreenGui.ColorFrame.ColorName.Text = m.BrickColor.Name
	end
	wait(7)
	for i, v in pairs(workspace.Map.CS:GetChildren())do
        if v.BrickColor.Name ~= m.BrickColor.Name then
	v.CanCollide = false
	v.Transparency = 0.7
end
	end	
	wait(3)
	for i, v in pairs(workspace.Map.CS:GetChildren())do
	v.CanCollide = true
	v.Transparency = 0
        v.BrickColor = BrickColor.Random()
	end
end
repeat wait(1) until game.ServerScriptService.Playing.AlivePlayers.Value <= 0
game.ServerScriptService.Main.Disabled = true
	for i, v in pairs(game.Players:GetChildren())do
		v.PlayerGui.ScreenGui.ColorFrame.Visible = false
		v.PlayerGui.ScreenGui.TextLabel.Visible = true
		game.ReplicatedStorage.Text.Value = "Nobody Survived!"
	end
	wait(5)
	workspace.Map:ClearAllChildren()
	game.ServerScriptService.Main.Disabled = false
	script.Disabled = true

2nd Script:

local text = game.ReplicatedStorage.Text

while true do
	for i = 25, 0, -1 do
		text.Value = "Next Round in "..i
		wait(1)
	end
	wait(2)
		text.Value = "Picking Gamemode..."	
		wait(5)
		local gamemode = math.random(1)
		if gamemode == 1 then
			game.Lighting.CS:Clone().Parent = workspace.Map
			for i, v in pairs(workspace.Map.CS:GetChildren())do
				if v:IsA("BasePart") then
				v.BrickColor = BrickColor.Random()
				end
			end
			text.Value = "The gamemode will be Color Scramble!"
			wait(3)
			game.ServerScriptService.Playing.AlivePlayers.Value = game.Players.NumPlayers
			for i, v in pairs(game.Players:GetChildren())do
				local list = workspace.Spawns:GetChildren()
                m = list[math.random(#list)]
				v.Character.HumanoidRootPart.CFrame = CFrame.new(m.Position) + Vector3.new(0,5,0)
			end
			wait(2)
			game.ServerScriptService.CSScript.Disabled = false
			for i, v in pairs(game.Players:GetChildren())do
				v.PlayerGui.ScreenGui.TextLabel.Visible = false
				v.PlayerGui.ScreenGui.ColorFrame.Visible = true
			end
			wait(121)
		end
		game.ServerScriptService.CSScript.Disabled = true
			for i, v in pairs(game.Players:GetChildren())do
				v.PlayerGui.ScreenGui.TextLabel.Visible = true
				v.PlayerGui.ScreenGui.ColorFrame.Visible = false
			end
			if game.ServerScriptService.Playing.AlivePlayers.Value > 1 then
				 text.Value = "Multiple people have won!"
			elseif game.ServerScriptService.Playing.AlivePlayers.Value == 1 then
				 text.Value = "One person has won!"
			end
			wait(5)
		game.ServerScriptService.Playing.AlivePlayers.Value = 0
		workspace.Map:ClearAllChildren()
end

is not working in the real game

Error: ScreenGui is not a valid member of PlayerGui

all of these scripts are in a regular script in ServerScriptService.

6 comments

0

I don't think the server has access to the client's PlayerGui. You may have to use RemoteEvents for this.

0

yay duplicates

0

ugh

0

Hai bossay6

0

life is horrendous

0

well time for a new game idea