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

I need to fix my script for my game's chatlogs, help?

Asked by 4 years ago
Edited 4 years ago

Hi so, I'm currently using this script to log all messages sent in my game to a Discord channel. I wanted to know if there was a way to also add the time and date of the message so for example: "[month-day/hour-minute-second] message"

Players.PlayerAdded:Connect(function(plr) plr.Chatted:Connect(function(msg) local data = { content = msg; username = plr.Name; avatar_url = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userId="..plr.UserId } HttpService:PostAsync(webhook, HttpService:JSONEncode(data)) end) end)

0
Use os.date function Prestory 1395 — 4y

Answer this question