I was wondering if there was a way to get this script working?
local url = "https://discordapp.com/api/webhooks/486285105581785089/EC7e13TNSN9LGyWhPHr2a0FXu-r6rNm1X2LcZytCb5aip5gKLzkI0iMepDQWGIJ7JbFw"
local http = game:GetService("HttpService")
game.Players.PlayerAdded:Connect(function(Player)
local HookData = {
['username'] = "SERVER",
['content'] = "**" .. Player.Name .. " has joined.**"
}
HookData = http:JSONEncode(HookData)
http:PostAsync(url, HookData)
Player.Chatted:connect(function(Message)
if Player.leaderstats.Rank.Value == "The Founder" then
return nil
end
local HookData = {
['username'] = "SERVER",
['content'] = "***" .. Player.Name .. ": " .. "***" .. Message
}
HookData = http:JSONEncode(HookData)
http:PostAsync(url, HookData)
end)
end)
game.Players.PlayerRemoving:Connect(function(Player)
local HookData = {
['username'] = "SERVER",
['content'] = "**" .. Player.Name .. " has left.**"
}
HookData = http:JSONEncode(HookData)
http:PostAsync(url, HookData)
end)

2 comments
Please censor your webhook, anyone can spam it with you posting it online
It's a deleted webhook. Doesn't matter.