#Script Thats Logs Joins / Leaves Broken.
44 messages · Page 1 of 1 (latest)
Incessant logging is what got Roblox's IP banned from Discord
It breaks Discord's ToS
You do not need to know who leaves and joins your game
If they really wanna know just use something other than discord like an database or something
hoow would one do that
Http service to a database like sql
kk
🗿 so why do u need to know whos playing ur game
local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
local WebhookUrl = "YOUR_DISCORD_WEBHOOK_URL"
function logUserData(player)
local userId = player.UserId
local joinDate = tostring(player.AccountAge)
local loginDate = os.date("%Y-%m-%d %X")
local jsonData = {
["content"] = "New user logged in!",
["embeds"] = {{
["title"] = "User Data",
["description"] = string.format("User: %s\nJoin Date: %s\nLogin Date: %s", userId, joinDate, loginDate),
["color"] = 65280 -- Green
}}
}
local response = HttpService:PostAsync(WebhookUrl, HttpService:JSONEncode(jsonData))
if response == "200" then
print("User data logged successfully!")
else
warn("Failed to log user data:", response)
end
end
Players.PlayerAdded:Connect(logUserData)
Please make sure to replace "YOUR_DISCORD_WEBHOOK_URL" with the actual webhook URL you want to use for logging the data. Also, note that this script assumes you have HTTP requests enabled in your Roblox game.
When a player joins the game, this script will send a Discord message with their user ID, join date, and login date. The join date is calculated based on the player's account age, and the login date is the current date and time.
Remember to place this script in a ServerScriptService or similar service to ensure it runs on the server-side.
There
so i can tarrget ads
💀
Lol
damn
use a web, like they said discord can ban u for this
which one
link to sooome wrebs?
If the discord server is private?
But for saftey use what he said
didnt i send u a script
Yh ama try when am on pc
link?
?
too Slq
You need to get a server that is accessible from the internet
Yes
Web servers and physical is the same they all have physical servers
do u have any rrecomendations too any websites that povide this
Ther are some free ones like replit (hosting web servers or nodejs servers)
buhh
Just try it without a web server