Hi there! My script tells a GUI to "pop up" at a certain time, (ex. 11:05pm, grabbing the time from the lighting) but there's a problem - new people who come in the server at 11:06pm will not get this message because they weren't in the server when this script told something to happen in a Player's GUI at 11:05pm.
So, the question is, how would I make something happen during say, 11:05pm-11:20pm instead of only 11:05pm that has to do with the player, that technically doesn't even exist yet so it would need to keep looping this every 1 second throughout the times of 11:05pm to 11:15pm? Or if you could refer me to the wiki where you found this type of information stored? I am not able to find it :c
Thanks!
player = game.Players.LocalPlayer
while true do
if game.Lighting.TimeOfDay == "06:05:00" then --Notifications 7:20AM
player.PlayerGui.PopUp.Frame.slidein.Disabled = false
player.PlayerGui.PopUp.Frame.text.Text = ("HI HELLO")
wait(10)
player.PlayerGui.PopUp.Frame.slidein.Disabled = true
player.PlayerGui.PopUp.Frame.slideout.Disabled = false
end
wait(1)
end

3 comments
Basically what this does, it makes it happen around 06:05:00 and not exactly at 06:05:00
ah, that's interesting if that's really what that does. thank you for your answer, but for this specific event I am in need of something very precise where I can control exactly how long something lasts for.
hmmmm