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

I am trying to make a screenGUI work but it doesn't update. How do I fix this?

Asked by 5 years ago

I'm trying to make a countdown GUI. When the game starts, it displays time.Value, but when time.Value changes, it doesn't update. Please help

local time = script.Parent.time
while true do
    wait()
    game.StarterGui.ScreenGui.TextLabel.Text = "Time: "..time.Value
end

1 answer

Log in to vote
0
Answered by 5 years ago
local time = script.Parent.time
while true do
    wait()
    game.PlayerGui.ScreenGui.TextLabel.Text == "Time: "..time.Value
end

Problem: StarterGui is transferred over to PlayerGui while in game.

Ad

Answer this question