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

The Intermission function does not update on the GUI when I run the script. Can someone help me?

Asked by 4 years ago
local players = game:GetService("Players")

local function Intermission(player)

local BeginningText = game.Players.player.PlayerGui.ScreenGui

game.StarterGui.ScreenGui.Enabled = true

    wait(1)
    BeginningText.TextLabel.Text = "Beginning In 4"
    wait(1)
     BeginningText.TextLabel.Text = "Beginning In 3"
    wait(1)
     BeginningText.TextLabel.Text = "Beginning In 2"
    wait(1)
     BeginningText.TextLabel.Text = "Beginning In 1"
    wait(1)
     BeginningText.TextLabel.Text = "Beginning In 0"
end

    local function playerwait(player)
          if #players:GetPlayers() > 2 then 
        game.StarterGui.WaitingForPlayer.Enabled = false

        wait(1)

        Intermission(player)
    end
        end

game.Players.PlayerAdded:Connect(playerwait)
0
Oh my god Ziffixture 6913 — 4y
0
What is your expected result and what is actual result so that i can provide answer. Somone_exe 224 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

The problem is that at the start, you've defined BeginningText as game.Players.player.PlayerGui.ScreenGui. I think this is the issue. Try doing instead game.StarterGui.ScreenGui - or is this running separately on each client rather than the whole server? You haven't provided any background information for us to help you with ;-;

Ad

Answer this question