Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextButton = Instance.new("TextButton")
- -- Properties
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.Position = UDim2.new(0.293229163, 0, 0.391666681, 0)
- Frame.Size = UDim2.new(0, 461, 0, 322)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0.117647, 1, 1)
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.0582839437, 0, 0.0469403006, 0)
- TextLabel.Size = UDim2.new(0, 408, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Jailbreak Escaper"
- TextLabel.TextSize = 50
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BorderSizePixel = 3
- TextButton.Position = UDim2.new(0.0585683286, 0, 0.276397526, 0)
- TextButton.Size = UDim2.new(0, 408, 0, 184)
- TextButton.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Escape"
- TextButton.TextSize = 100
- --TextButton Script Exec.
- TextButton.MouseButton1Click:connect(function()
- local x = "-1175"
- local y = "17"
- local z = "-1443"
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(x, y, z))
- end)
- --Put On End
- local UserInputService = game:GetService("UserInputService")
- local gui = Frame
- 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement