I already have the Gui I just need help creating a script that will prompt the player with the GUI every 24 hours (86400 seconds).
✓ ANSWER ACCEPTED
How can I create a script that shows a Gui to players every 24 hours (86400 seconds)?
1 answer
✓ Accepted answer
local TimePeriod = 86400
local lp
game.Players.ChildAdded:connect(function(p)
lp = os.time()
local timelapsed = os.time() - lp
if timelapsed >= TimePeriod then
-- Do something
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Do you want a prompt that pops up at a certain time every day for all users in the game or a prompt that pops up once a day for every player who joins that game?
^^
^^
I need one that pops up once a day for every player who joins that game
Is It Like A login bonus?