Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

``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

























1 comment

0

Is the program a LocalScript, as well as a descendant of a TextLabel with a parent of the ScreenGui instance under StarterGui?

1 answer

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!

This discussion is preserved as it was. New answers, comments, and votes are closed.