Heres The Script:
01 | local http = game:GetService( "HttpService" ) |
02 |
03 | game:GetService( "Players" ).PlayerAdded:Connect( function (player) |
04 | if not game:GetService( "RunService" ):IsStudio() then |
05 | local date = os.date( "!*t" ) |
06 | local Data = { |
07 | [ "content" ] = player.Name.. " joined your game on " ..date.month.. "/" ..date.day.. "/" ..date.year |
08 | } |
09 | Data = http:JSONEncode(Data) |
10 | http:PostAsync( "https://discordapp.com/api/webhooks/370381711340470272/yTxQDswCY3_vdHrUcQNea-HTAVFyj6jFaND_uSQwRb2zzGWo7B9TydkjppimQeZNXnnG" , Data) |
11 | end |
12 | end ) |
I'm just wondering if you could make this any better
Function ? What is it supposed to do ?