Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Instances
- local ExploitHolder = Instance.new("ScreenGui")
- local ExploitFrame = Instance.new("Frame")
- local ExploitTitle = Instance.new("TextLabel")
- local Button = Instance.new("TextButton")
- local Writer = Instance.new("TextBox")
- local ButtonScript = Instance.new("ModuleScript")
- local Drag = Instance.new("LocalScript")
- -- Parent Settings
- local StarterGui = workspace.Parent.Players.LocalPlayer.PlayerGui
- -- Parent Setter
- ExploitHolder.Parent = StarterGui
- ExploitFrame.Parent = ExploitHolder
- ExploitTitle.Parent = ExploitFrame
- Button.Parent = ExploitFrame
- Writer.Parent = ExploitFrame
- ButtonScript.Parent = workspace.Parent.ServerScriptService
- -- Name Settings
- ExploitHolder.Name = "ExploitHolder"
- ExploitFrame.Name = "ExploitFrame"
- ExploitTitle.Name = "ExploitTitle"
- Button.Name = "Execute"
- Writer.Name = "CodeWriter"
- -- Colour Settings
- ExploitFrame.BackgroundColor3 = Color3.new(0.709804, 0.776471, 0.835294)
- ExploitTitle.BackgroundColor3 = Color3.new(0, 0, 0)
- Button.BackgroundColor3 = Color3.new(0.411765, 0.498039, 1)
- Writer.BackgroundColor3 = Color3.new(1, 1, 1)
- Writer.TextColor3 = Color3.new(0.215686, 1, 0)
- Writer.PlaceholderColor3 = Color3.new(0, 1, 0.113725)
- ExploitTitle.TextColor3 = Color3.new(1, 1, 1)
- Button.TextColor3 = Color3.new(0, 0, 0)
- -- Position Settings
- ExploitFrame.Position = UDim2.new(0.273, 270,0.208, 0)
- Button.Position = UDim2.new(0, 0,0.832, 0)
- ExploitTitle.Position = UDim2.new(0, 0,0, 0)
- Writer.Position = UDim2.new(0, 0,0.132, 0)
- -- UI Settings
- ExploitTitle.Text = "Exitedsnow311's Exploit"
- ExploitTitle.TextScaled = true
- ExploitTitle.Font = "SourceSansBold"
- Writer.Text = "-- Script Here!"
- Button.Text = "Execute"
- ExploitFrame.Size = UDim2.new(0, 498,0, 303)
- Button.Size = UDim2.new(0, 498,0, 50)
- Writer.Size = UDim2.new(0, 498,0, 212)
- ExploitTitle.Size = UDim2.new(0, 498,0, 50)
- ExploitFrame.BorderSizePixel = 0
- ExploitTitle.BorderSizePixel = 0
- Writer.BorderSizePixel = 0
- Button.BorderSizePixel = 0
- Writer.Font = "SciFi"
- Writer.TextScaled = true
- ExploitTitle.TextScaled = true
- Button.TextScaled = true
- -- References
- local Codet = Writer.Text
- -- Functionallity
- Button.MouseButton1Click:Connect(function()
- ButtonScript.Source = Codet
- end)
- -- Seperator
- local UserInputService = game:GetService("UserInputService")
- local gui = script.Parent
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- -- Seperator
- require(ButtonScript)
Add Comment
Please, Sign In to add comment