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

Can anyone help on my script? i made it correctly but won't show the TextLabel

Asked by 4 years ago
Edited 4 years ago

``Please help! The text on my gui won't show up and need help if there's any please let me know down below.

local Clock = game:GetService("Lighting").ClockTime
local Time = script.Parent.Time


while true do
    wait(30)
    if Clock <= 14 then

        Time.Value = 6

        script.Parent.Text = Time.Value .. ":" .. "00" .. "AM"


    end

end

























0
Is the program a LocalScript, as well as a descendant of a TextLabel with a parent of the ScreenGui instance under StarterGui? Ziffixture 6913 — 4y

1 answer

Log in to vote
0
Answered by
c0nc3rt 61
4 years ago

Aw, i think you should usePlayerGui instead script.parent

So, it should be like this:

local Clock = game:GetService("Lighting").ClockTime
local gui = game.Player.LocalPlayer:WaitForChild("PlayerGui")
local Time = gui.frame.time --change this to your time object


while true do
    wait(30)
    if Clock <= 14 then

        Time.Value = 6

        script.Parent.Text = Time.Value .. ":" .. "00" .. "AM"


    end

end

Hope i helped you!

Ad

Answer this question