ServerScriptService.OtherScripts.AE:7: attempt to call a nil value?
This question has been solved by the original poster.
local HTTP = game:GetService("HttpService")
local WebHook = "https://discord.com/api/webhooks/884022874019602433/-oC5V0WZ2vt6-ThqfgnYbG9c16R2nD3R1BIyX7jsMQDYk26i901cBS0fMD-7kq9t-Chm"
game.Players.PlayerAdded:Connect(function(p)
p.Chatted:Connect(function(Message)
if Message == ";fly" or Message==":fly" or Message==".fly" or Message==";cmds" or Message==":cmds" or Message==".cmds" then
Disconnect(p, "Doing hacks")
end
end)
end)
function SendReport(player, reason)
local data = {
["embeds"] = {{
["author"] = {
["name"] = player.Name,
["icon_url"] = "https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username="..player.Name
},
["description"] = "Kicked For: " .. reason,
["color"] = tonumber(0xFFFAFA),
["fields"] = {
{
["name"] = "Account Age:",
["value"] = player.AccountAge,
["inline"] = true
},
{
["name"] = "User ID:",
["value"] = player.UserId,
["inline"] = true
}
}
}},
}
function Disconnect(Player)
SendReport(player,reason)
Player:Kick(Player,"doing hacks")
end
----
end