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

How to kick players at a specific month date time in a loop?

while true do
	if DateTime
end

So i want to make a update kicker for if it is 10/10/2020 20:00Pm Is this posible I tought dateTime is something i need for this

1 answer

well you could use the os.date function. the function takes a format string and an epoch time stamp such as the one produced by os.time().

if you do:

local t = os.date("*t",os.time())
print("month = ", t.month)
print("day = ", t.day)

on january 7, it should print the following

month = 1;

day = 7

learn more here

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