Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

ServerScriptService.OtherScripts.AE:7: attempt to call a nil value?


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

2 comments

0

fixed the error now it doesnt send it to the discord sever

0

fixed that aswell

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.