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

How can I create a script that shows a Gui to players every 24 hours (86400 seconds)?

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).

5 comments

2

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?

0

^^

0

^^

0

I need one that pops up once a day for every player who joins that game

0

Is It Like A login bonus?

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.