i'm working on a fnaf parody game. i've got a time system (12-6 am) working and that's good and all, but i really need a way for a GUI to become visible once the time hits 6 am (360 seconds irl) to be like a 'you won' screen. i've tried wait commands and stuff, but i'm still kind of struggling. i'm also not very sure if i need to put the GUI wait script into the GUI itself or into workspace? (i'm new to scripting lol, i'm srry if this sounds dumb.)
i'll appreciate it if anyone can help! :) <3
Could just do something like this..
local gui = script.Parent.ScreenGui.Frame gui.Visible = true
local GUI = script.Parent.(gui name here) --// Try this while true do wait(360) script.Parent.GUI.Visible = true --// And make it invisible again after a certain time wait(5) script.Parent.GUI.Visible = false end --// This may work idk
not an answer to ur answer but pls dont repeat yourself in this way, make a variable for the text so it could look like this
local text = script.Parent.Text while true do text = "12 AM" wait(59) text = "1 AM" wait(59) text = "2 AM" wait(59) text = "3 AM" wait(59) text = "4 AM" wait(59) text = "5 AM" wait(59) text = "6 AM" end
I mean you could just use a wait;
local gui = script.Parent wait(5) gui.Visible = true
local gui = script.Parent gui.Visible = false wait(360) gui.Visible = true