Advertisement
1zxyuuki

test

Feb 9th, 2024 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. repeat
  2. task.wait(2)
  3. until game.Loaded
  4.  
  5. if game.PlaceId == 12886143095 then
  6.  
  7. local Player = game:GetService 'Players'.LocalPlayer
  8. local Character = Player.Character or Player.CharacterAdded:Wait()
  9. Character:WaitForChild("HumanoidRootPart")
  10. -- Character.HumanoidRootPart.CFrame = game:GetService("Workspace")["_npcs"].kisuke.Torso.CFrame
  11.  
  12. print('Running')
  13. local url =
  14. "https://discord.com/api/webhooks/1205214535674499122/nO-1SuHVrWcJQLZ5Wcb6VvJJmS4cgv25xy4hdBVkCAntXDZg-aa8blhIO4mhOZu7jpeM"
  15.  
  16. local function sendWebhook(contents)
  17. local data = {
  18. ["embeds"] = {{
  19. ["title"] = "| Summons | ?",
  20. ["description"] = contents,
  21. ["type"] = "rich",
  22. ["color"] = tonumber(0x7269da)
  23. }}
  24. }
  25. local newdata = game:GetService("HttpService"):JSONEncode(data)
  26. local headers = {
  27. ["content-type"] = "application/json"
  28. }
  29. local wh = {
  30. Url = url,
  31. Body = newdata,
  32. Method = "POST",
  33. Headers = headers
  34. }
  35. request = http_request or request or HttpPost or syn.request
  36. local HttpService = game:GetService("HttpService")
  37. request(wh)
  38. end
  39. task.wait(5)
  40. local summonUI = game:GetService("Players").LocalPlayer.PlayerGui.NewUnit--.UnitName.Scroll
  41.  
  42. local HttpService = game:GetService("HttpService")
  43. local var = false
  44.  
  45. local summonList = {}
  46. for i, v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.NewUnit.Viewport:GetDescendants()) do
  47. if v:IsA("Model") and v.Name == "WorldModel" then
  48.  
  49. unit = v:FindFirstChildOfClass("Model")
  50.  
  51. table.insert(summonList, tostring(unit))
  52. end
  53. end
  54.  
  55. if isfile("SummonWebhook.txt") then
  56. print("File Exists")
  57. for i, v in pairs(HttpService:JSONDecode(readfile("SummonWebhook.txt"))) do
  58.  
  59. if v == summonList[i] then
  60.  
  61. print("Match")
  62.  
  63. elseif v ~= summonList[i] and var == false then
  64. sendWebhook(HttpService:JSONEncode(summonList))
  65. var = true
  66. print("Not a match")
  67. end
  68. end
  69.  
  70. if var == true then
  71. writefile("SummonWebhook.txt", HttpService:JSONEncode(summonList))
  72. end
  73.  
  74. else
  75. writefile("SummonWebhook.txt", HttpService:JSONEncode(summonList))
  76. sendWebhook(HttpService:JSONEncode(summonList))
  77. print(isfile("SummonWebhook.txt"))
  78. end
  79. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement