#I tried to make a chat logs system with webhook
106 messages · Page 1 of 1 (latest)
local URL = "https://hooks.hyra.io/api/webhooks/"
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
local function postMessage(player, index)
local teamValue
pcall(function()
if not player.Team then
teamValue = "-"
else
teamValue = player.Team.Name
end
end)
local data = {
["content"] = "";
["embeds"] = {{
["author"] = {
["name"] = player.Name;
["icon_url"] = "https://www.roblox.com/headshot-thumbnail/image?userId="..player.UserId.."&width=150&height=150&format=png"
};
["description"] = "Message: **"..index.."**",
["color"] = tonumber(0xffffff);
["fields"] = {
{
["name"] = "User ID";
["value"] = player.UserId;
["inline"] = true;
};
{
["name"] = "Account Age";
["value"] = player.AccountAge.."days";
["inline"] = true;
};
{
["name"] = "Team";
["value"] = teamValue;
["inline"] = true;
};
};
["footer"] = {
["icon_url"] = "";
["text"] = "Programmed by madmonkeyfoot";
}
}}
}
local finalizedData = HttpService:JSONEncode(data)
HttpService:PostAsync(URL, finalizedData)
end
local function PlayerAdded(Player)
Players.Chatted:Connect(function(Message)
postMessage(Player, Message)
end)
end
for _, Player in ipairs(Players:GetPlayers()) do
PlayerAdded(Player)
end
Players.PlayerAdded:Connect(PlayerAdded)
do you have http request on
the proxy could also be down
make sure you put the other webhook info in correctly next to the link as well
roblox must have blocked it then
local URL = "https://discord.com/api/webhooks/"
local Players = game:GetService("Players")
local HttpService = game:GetService("HttpService")
local function postMessage(player, index)
local teamValue
pcall(function()
if not player.Team then
teamValue = "-"
else
teamValue = player.Team.Name
end
end)
local data = {
["content"] = "";
["embeds"] = {{
["author"] = {
["name"] = player.Name;
["icon_url"] = "https://www.roblox.com/headshot-thumbnail/image?userId="..player.UserId.."&width=150&height=150&format=png"
};
["description"] = "Message: **"..index.."**",
["color"] = tonumber(0xffffff);
["fields"] = {
{
["name"] = "User ID";
["value"] = player.UserId;
["inline"] = true;
};
{
["name"] = "Account Age";
["value"] = player.AccountAge.." days";
["inline"] = true;
};
{
["name"] = "Team";
["value"] = teamValue;
["inline"] = true;
};
};
["footer"] = {
["icon_url"] = "";
["text"] = "Area Zero"
}
}}
}
local finalizedData = HttpService:JSONEncode(data)
HttpService:PostAsync(URL, finalizedData)
end
local function PlayerAdded(Player)
Player.Chatted:Connect(function(Message)
postMessage(Player, Message)
end)
end
for _, Player in ipairs(Players:GetPlayers()) do
PlayerAdded(Player)
end
Players.PlayerAdded:Connect(PlayerAdded)
I changed it with that ^^
wdym proxy
you can have discord.com
Roblox banned discord webhooks
so you need to use the proxy
alr
if u scroll down
** You are now Level 19! **
there is a conversion thing
these proxies always have the most sus links ever i swear
ok
@indigo orei changed script to first one i sent in here
and put that proxy in it
and published
now joining game
did work?
we will see
now these proxies sometimes go down so
make the game public not private
its public
then you didn't put the proxy in correctly
remove api
make sure to remove the extra "/" to
ok
i accidently closed studio but its opening rn
i will test
shall i test in studio or in game
hm
let me test give seec
ok
turns out
i had wrong error
the script wont work
bc of a typo
local function PlayerAdded(Player)
Players.Chatted:Connect(function(Message)
postMessage(Player, Message)
end)
end
this function here
Remove the "s" from "Players"
oh and
add "api" back to the link
@glossy juniper
discord robloxtan webhook https isteklerini blokladı artık webhook kullanamassın roblox üzeründen
belki eğer bir discord botu hostlayıp ona gönderirsen o çalışır başka bir yolu yok
yada proxy ayarlayabilirsin
i dont believe the url
"https://www.roblox.com/headshot-thumbnail/image?userId="..player.UserId.."&width=150&height=150&format=png"
works anymore
it used to, but now it sends nothing in webhooks
all my webhooks that have been sent in my server have been nullified as a result of the change
so you would need two proxies, one for the webhook itself, and one to get the headshot thumbnail. i know a few webhook proxies, however i am unaware of any alternatives for headshot thumbnail
Can you help me with it if possible?
done
dm e bak