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

Is There A Way To Make This Discord Script Any Better I don't know if there is?

Asked by
LuaDLL 253 Moderation Voter
7 years ago

Heres The Script:

local http = game:GetService("HttpService")

game:GetService("Players").PlayerAdded:Connect(function(player)
    if not game:GetService("RunService"):IsStudio() then
        local date = os.date("!*t")
        local Data = {
            ["content"] = player.Name.." joined your game on "..date.month.."/"..date.day.."/"..date.year
        }
        Data = http:JSONEncode(Data)
        http:PostAsync("https://discordapp.com/api/webhooks/370381711340470272/yTxQDswCY3_vdHrUcQNea-HTAVFyj6jFaND_uSQwRb2zzGWo7B9TydkjppimQeZNXnnG", Data)
    end
end)

I'm just wondering if you could make this any better

1 answer

Log in to vote
-2
Answered by 7 years ago

Function ? What is it supposed to do ?

0
Should've been a comment awfulszn 394 — 7y
Ad

Answer this question