#Script Thats Logs Joins / Leaves Broken.

44 messages · Page 1 of 1 (latest)

tawny zephyr
#

If your module doesn’t have limiting feature I suggest you don’t do this

#

As this can get your account banned

main mountain
#

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

tawny zephyr
tawny zephyr
velvet dune
#

kk

balmy crater
#

🗿 so why do u need to know whos playing ur game

stone lake
#
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

velvet dune
balmy crater
#

💀

stone lake
#

Lol

stone lake
#

I still need help w me script

#

Ong

balmy crater
#

use a web, like they said discord can ban u for this

balmy crater
stone lake
#

Same channel

#

Ill try doing it

velvet dune
stone lake
#

When am on oc

#

Pc

stone lake
#

But for saftey use what he said

balmy crater
stone lake
velvet dune
tawny zephyr
#

?

velvet dune
#

too Slq

tawny zephyr
velvet dune
#

like a physical server

#

or web servers

tawny zephyr
#

Web servers and physical is the same they all have physical servers

velvet dune
#

do u have any rrecomendations too any websites that povide this

tawny zephyr
stone lake
#

I used one ngl

#

I dont rem what i used

velvet dune
#

buhh

stone lake
#

Just try it without a web server