NeverCords

My Exploit

Jul 28th, 2021 (edited)
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. -- Instances
  2. local ExploitHolder = Instance.new("ScreenGui")
  3. local ExploitFrame = Instance.new("Frame")
  4. local ExploitTitle = Instance.new("TextLabel")
  5. local Button = Instance.new("TextButton")
  6. local Writer = Instance.new("TextBox")
  7. local ButtonScript = Instance.new("ModuleScript")
  8. local Drag = Instance.new("LocalScript")
  9. -- Parent Settings
  10. local StarterGui = workspace.Parent.Players.LocalPlayer.PlayerGui
  11. -- Parent Setter
  12. ExploitHolder.Parent = StarterGui
  13. ExploitFrame.Parent = ExploitHolder
  14. ExploitTitle.Parent = ExploitFrame
  15. Button.Parent = ExploitFrame
  16. Writer.Parent = ExploitFrame
  17. ButtonScript.Parent = workspace.Parent.ServerScriptService
  18. -- Name Settings
  19. ExploitHolder.Name = "ExploitHolder"
  20. ExploitFrame.Name = "ExploitFrame"
  21. ExploitTitle.Name = "ExploitTitle"
  22. Button.Name = "Execute"
  23. Writer.Name = "CodeWriter"
  24. -- Colour Settings
  25. ExploitFrame.BackgroundColor3 = Color3.new(0.709804, 0.776471, 0.835294)
  26. ExploitTitle.BackgroundColor3 = Color3.new(0, 0, 0)
  27. Button.BackgroundColor3 = Color3.new(0.411765, 0.498039, 1)
  28. Writer.BackgroundColor3 = Color3.new(1, 1, 1)
  29. Writer.TextColor3 = Color3.new(0.215686, 1, 0)
  30. Writer.PlaceholderColor3 = Color3.new(0, 1, 0.113725)
  31. ExploitTitle.TextColor3 = Color3.new(1, 1, 1)
  32. Button.TextColor3 = Color3.new(0, 0, 0)
  33. -- Position Settings
  34. ExploitFrame.Position = UDim2.new(0.273, 270,0.208, 0)
  35. Button.Position = UDim2.new(0, 0,0.832, 0)
  36. ExploitTitle.Position = UDim2.new(0, 0,0, 0)
  37. Writer.Position = UDim2.new(0, 0,0.132, 0)
  38. -- UI Settings
  39. ExploitTitle.Text = "Exitedsnow311's Exploit"
  40. ExploitTitle.TextScaled = true
  41. ExploitTitle.Font = "SourceSansBold"
  42. Writer.Text = "-- Script Here!"
  43. Button.Text = "Execute"
  44. ExploitFrame.Size = UDim2.new(0, 498,0, 303)
  45. Button.Size = UDim2.new(0, 498,0, 50)
  46. Writer.Size = UDim2.new(0, 498,0, 212)
  47. ExploitTitle.Size = UDim2.new(0, 498,0, 50)
  48. ExploitFrame.BorderSizePixel = 0
  49. ExploitTitle.BorderSizePixel = 0
  50. Writer.BorderSizePixel = 0
  51. Button.BorderSizePixel = 0
  52. Writer.Font = "SciFi"
  53. Writer.TextScaled = true
  54. ExploitTitle.TextScaled = true
  55. Button.TextScaled = true
  56. -- References
  57. local Codet = Writer.Text
  58. -- Functionallity
  59. Button.MouseButton1Click:Connect(function()
  60. ButtonScript.Source = Codet
  61. end)
  62. -- Seperator
  63. local UserInputService = game:GetService("UserInputService")
  64.  
  65. local gui = script.Parent
  66.  
  67. local dragging
  68. local dragInput
  69. local dragStart
  70. local startPos
  71.  
  72. local function update(input)
  73. local delta = input.Position - dragStart
  74. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  75. end
  76.  
  77. gui.InputBegan:Connect(function(input)
  78. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  79. dragging = true
  80. dragStart = input.Position
  81. startPos = gui.Position
  82.  
  83. input.Changed:Connect(function()
  84. if input.UserInputState == Enum.UserInputState.End then
  85. dragging = false
  86. end
  87. end)
  88. end
  89. end)
  90.  
  91. gui.InputChanged:Connect(function(input)
  92. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  93. dragInput = input
  94. end
  95. end)
  96.  
  97. UserInputService.InputChanged:Connect(function(input)
  98. if input == dragInput and dragging then
  99. update(input)
  100. end
  101. end)
  102. -- Seperator
  103. require(ButtonScript)
Add Comment
Please, Sign In to add comment