SHARE
TWEET

Untitled

a guest Feb 21st, 2020 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local StreamSnipe = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local TextLabel = Instance.new("TextLabel")
  4. local TextLabel_2 = Instance.new("TextLabel")
  5. local UsernameBox = Instance.new("TextBox")
  6. local TextLabel_3 = Instance.new("TextLabel")
  7. local PlaceIdBox = Instance.new("TextBox")
  8. local StartButton = Instance.new("TextButton")
  9. local HttpService = game:GetService("HttpService")
  10. local htgetf = game.HttpGet
  11.  
  12. StreamSnipe.Name = HttpService:GenerateGUID(false)
  13. StreamSnipe.Parent = game:GetService("CoreGui")
  14.  
  15. Frame.Parent = StreamSnipe
  16. Frame.Active = true
  17. Frame.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  18. Frame.BorderColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  19. Frame.Position = UDim2.new(0, 430, 0, 200)
  20. Frame.Size = UDim2.new(0, 400, 0, 260)
  21. Frame.Draggable = true
  22.  
  23. TextLabel.Parent = Frame
  24. TextLabel.Active = true
  25. TextLabel.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  26. TextLabel.BorderColor3 = Color3.new(0.121569, 0.121569, 0.160784)
  27. TextLabel.Size = UDim2.new(0, 400, 0, 40)
  28. TextLabel.Font = Enum.Font.SourceSansLight
  29. TextLabel.Text = "Synapse X Stream Sniper"
  30. TextLabel.TextSize = 24
  31.  
  32. TextLabel_2.Parent = Frame
  33. TextLabel_2.Active = true
  34. TextLabel_2.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  35. TextLabel_2.BorderColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  36. TextLabel_2.Position = UDim2.new(0, 10, 0, 50)
  37. TextLabel_2.Size = UDim2.new(0, 380, 0, 20)
  38. TextLabel_2.Font = Enum.Font.SourceSansLight
  39. TextLabel_2.Text = "Username/UserId:"
  40. TextLabel_2.TextColor3 = Color3.new(1, 1, 1)
  41. TextLabel_2.TextSize = 16
  42.  
  43. UsernameBox.Name = "UsernameBox"
  44. UsernameBox.Parent = Frame
  45. UsernameBox.BackgroundColor3 = Color3.new(0.239216, 0.239216, 0.239216)
  46. UsernameBox.BorderColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  47. UsernameBox.Position = UDim2.new(0, 10, 0, 80)
  48. UsernameBox.Size = UDim2.new(0, 380, 0, 40)
  49. UsernameBox.Font = Enum.Font.SourceSansLight
  50. UsernameBox.PlaceholderColor3 = Color3.new(1, 1, 1)
  51. UsernameBox.PlaceholderText = "Enter Username Here"
  52. UsernameBox.Text = ""
  53. UsernameBox.TextColor3 = Color3.new(1, 1, 1)
  54. UsernameBox.TextSize = 18
  55.  
  56. TextLabel_3.Parent = Frame
  57. TextLabel_3.Active = true
  58. TextLabel_3.BackgroundColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  59. TextLabel_3.BorderColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  60. TextLabel_3.Position = UDim2.new(0, 10, 0, 130)
  61. TextLabel_3.Size = UDim2.new(0, 380, 0, 20)
  62. TextLabel_3.Font = Enum.Font.SourceSansLight
  63. TextLabel_3.Text = "Place Id:"
  64. TextLabel_3.TextColor3 = Color3.new(1, 1, 1)
  65. TextLabel_3.TextSize = 16
  66.  
  67. PlaceIdBox.Name = "PlaceIdBox"
  68. PlaceIdBox.Parent = Frame
  69. PlaceIdBox.BackgroundColor3 = Color3.new(0.239216, 0.239216, 0.239216)
  70. PlaceIdBox.BorderColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  71. PlaceIdBox.Position = UDim2.new(0, 10, 0, 160)
  72. PlaceIdBox.Size = UDim2.new(0, 380, 0, 40)
  73. PlaceIdBox.Font = Enum.Font.SourceSansLight
  74. PlaceIdBox.PlaceholderColor3 = Color3.new(1, 1, 1)
  75. PlaceIdBox.PlaceholderText = "Enter PlaceId Here"
  76. PlaceIdBox.Text = ""
  77. PlaceIdBox.TextColor3 = Color3.new(1, 1, 1)
  78. PlaceIdBox.TextSize = 18
  79.  
  80. StartButton.Name = "StartButton"
  81. StartButton.Parent = Frame
  82. StartButton.BackgroundColor3 = Color3.new(0.160784, 0.160784, 0.160784)
  83. StartButton.BorderColor3 = Color3.new(0.121569, 0.121569, 0.121569)
  84. StartButton.Position = UDim2.new(0, 10, 0, 210)
  85. StartButton.Size = UDim2.new(0, 380, 0, 40)
  86. StartButton.Font = Enum.Font.SourceSansLight
  87. StartButton.Text = "Start"
  88. StartButton.TextColor3 = Color3.new(1, 1, 1)
  89. StartButton.TextSize = 24
  90.  
  91. local Debounce = false
  92. local Kill = false
  93.  
  94. local function HttpGet(url)
  95.     return HttpService:JSONDecode(htgetf(url))
  96. end
  97.  
  98. local function Status(text, tout)
  99.     StartButton.Text = text
  100.     if tout then
  101.         spawn(function()
  102.             wait(tout)
  103.             StartButton.Text = "Start"
  104.         end)
  105.     end
  106. end
  107.  
  108. StartButton.MouseButton1Click:Connect(function()
  109.     if Debounce then
  110.         Kill = true
  111.         Debounce = false
  112.         return
  113.     end
  114.    
  115.     Debounce = true
  116.    
  117.     local PlaceId = PlaceIdBox.Text
  118.     Status("Stage 1...")
  119.    
  120.     local Suc, UserId = pcall(function()
  121.         if tonumber(UsernameBox.Text) then
  122.             return tonumber(UsernameBox.Text)
  123.         end
  124.        
  125.         return game:GetService("Players"):GetUserIdFromNameAsync(UsernameBox.Text)
  126.     end)
  127.    
  128.     if not Suc then
  129.         return Status("Username does not exist!", 3)
  130.     end
  131.    
  132.     Status("Stage 2..")
  133.    
  134.     local Thumbnail = HttpGet("https://www.roblox.com/headshot-thumbnail/json?userId=" .. UserId .. "&width=48&height=48").Url
  135.    
  136.     Status("Stage 3...")
  137.    
  138.     local Index = 0
  139.     while true do
  140.         local GameInstances = HttpGet("https://www.roblox.com/games/getgameinstancesjson?placeId=" .. PlaceId .. "&startindex=" .. Index)
  141.         for I,V in pairs(GameInstances.Collection) do
  142.             for I2,V2 in pairs(V.CurrentPlayers) do
  143.                 if V2.Id == UserId or V2.Thumbnail.Url == Thumbnail then
  144.                     Status("Complete!")
  145.                     game:GetService("TeleportService"):TeleportToPlaceInstance(tonumber(PlaceId), V.Guid)
  146.                     local FailCounter = 0
  147.                     game:GetService("Players").LocalPlayer.OnTeleport:Connect(function(State)
  148.                         if State == Enum.TeleportState.Failed then
  149.                             FailCounter = FailCounter + 1
  150.                             Status("Failed to teleport. (retry " .. tostring(FailCounter) .. ")")
  151.                             game:GetService("TeleportService"):TeleportToPlaceInstance(tonumber(PlaceId), V.Guid)
  152.                         end
  153.                     end)
  154.                     return
  155.                 end
  156.             end
  157.         end
  158.         Status("Stage 3 (" .. tostring(Index) .. "/" .. tostring(GameInstances.TotalCollectionSize) .. " servers scanned)...")
  159.         if Index > GameInstances.TotalCollectionSize then
  160.             return Status("Failed to get game! (VIP server?)", 3)
  161.         end
  162.         if Kill then
  163.             Kill = false
  164.             Debounce = false
  165.             Status("Cancelled.", 3)
  166.             return
  167.         end
  168.         Index = Index + 10
  169.     end
  170. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top