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

How to I make this gui pop up after the script is finished?

wait()

local mFloor = math.floor 
local Next = next 
local Tick = tick 
local Wait = wait 
local Stop = 0

while true do Wait(1) 
wait()
local Time = 1589101080 - Tick() 
local Days = mFloor((Time / 60 / 60 / 24) % (365 + 0.2425)) 
local Hours = mFloor((Time / 60 / 60) % 24) 
local Minutes = mFloor((Time / 60) % 60) 
local Seconds = mFloor(Time % 60) 

if Stop == 0 then

script.Parent.Time.Text = Days.."D "..Hours.. "H "..Minutes.."M "..Seconds.."S"
end

if Days==0 and Hours==0 and Minutes==0 and Seconds==0 then
Stop=1
script.Parent.Time.Text = "Live Event"

wait(2)
	 script.Parent.Visible = false

	wait(2)
	game.StarterGui.Live.Scene1.TextLabel.Visible = true -- This is not coming up..




       end	

	 end 

1 answer

✓ Accepted answer

The reason is because the gui gets cloned inside player gui. Try this: You many need to create a player variable.

player.PlayerGui.Live.Scene1.TextLabel.Visible = true

To store a players variable, in a local script do

local player = game.Players.LocalPlayer

2 comments

0

I figured it out I am making a new question please help on that one.

0

Ok if my awnser helped make sure to accept the awnser

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