Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is it possible to log time/date when a player joins in a server?

Asked by 6 years ago

What's in the question.

My friend wants a script like this:

game.Players.PlayerAdded:Connect(function(player)
--print(player.Name)
--Print(PLAYER_TIME_HERE)
--Print(Date_Here)
end)

Is that possible?

1 answer

Log in to vote
0
Answered by 6 years ago

You could use https://www.lua.org/pil/22.1.html to get the current time and date. You might want to store it all in a data store though.

0
Thanks! wilsonsilva007 373 — 6y
Ad

Answer this question