So I’m using an open sourced webhook Api and It works but for some reason it doesn’t only send messages once, it uhh does this…
Here’s the script
local HTTP = game:GetService("HttpService")
local webhookurl = "--Webhook"
local 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"] = "Banned For: Exploiting/Cheating " .. reason,
["color"] = tonumber(0xFFFAFA),
["fields"] = {
{
["name"] = "Account Age:",
["value"] = player.AccountAge,
["inline"] = true
},
{
["name"] = "User ID:",
["value"] = player.UserId,
["inline"] = true
}
}
}},
}
local finaldata = HTTP:JSONEncode(data)
HTTP:PostAsync(webhookurl, finaldata)
end
game.ReplicatedStorage.BanEvent.OnServerEvent:Connect(function(p)
wait(5)
SendReport(p, "PLAYER BANNED!")
end)
and it does it more times but Roblox studio just blocked it because it got over loaded with http requests.
heII_ish
(heII_ish)
June 22, 2021, 5:38pm
#2
Client probably spamming the remote
It only fires once
game.RepliatedStorage.Event:FireServer()
heII_ish
(heII_ish)
June 22, 2021, 5:42pm
#4
Is that your test account or someone else who got banned
It’s one of the developers for the game account. I just censored so people don’t think it’s an actual exploiter and report it.
I Can Help You. If You Exactly Tell Me What You Want. I Make The System For You.
1 Like
Winbloo
(Winbloo)
June 22, 2021, 5:53pm
#7
Can you show the script that fires the remote?
Sure:
local DataStore = game:GetService("DataStoreService")
local ExploitBans = DataStore:GetDataStore("ExploitBans")
game.ReplicatedStorage.BanEvent.OnServerEvent:Connect(function(v)
local char = v.Character
local plr = game.Players:GetPlayerFromCharacter(char)
local vID = v.UserId
local success, errormessage = pcall(function()
ExploitBans:SetAsync(vID, true)
end)
if success then
v:Kick("\nAnti-Exploit \n \n You Were Banned For The Reason Of: Exploiting. \n \n If You Belive This Was False You May Appeal This Ban In Our Discord Server.")
end
end)
Do you still need help? If so reply my message
I mean it does still spam a little but I guess it’s not bad.