Advertisement
Guest User

Untitled

a guest
May 20th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local TextLabel = Instance.new("TextLabel")
  6. local TextButton = Instance.new("TextButton")
  7.  
  8. -- Properties
  9.  
  10. ScreenGui.Parent = game.CoreGui
  11.  
  12. Frame.Parent = ScreenGui
  13. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  14. Frame.Position = UDim2.new(0.293229163, 0, 0.391666681, 0)
  15. Frame.Size = UDim2.new(0, 461, 0, 322)
  16.  
  17. TextLabel.Parent = Frame
  18. TextLabel.BackgroundColor3 = Color3.new(0.117647, 1, 1)
  19. TextLabel.BorderSizePixel = 0
  20. TextLabel.Position = UDim2.new(0.0582839437, 0, 0.0469403006, 0)
  21. TextLabel.Size = UDim2.new(0, 408, 0, 50)
  22. TextLabel.Font = Enum.Font.SourceSans
  23. TextLabel.Text = "Jailbreak Escaper"
  24. TextLabel.TextSize = 50
  25.  
  26. TextButton.Parent = Frame
  27. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  28. TextButton.BorderSizePixel = 3
  29. TextButton.Position = UDim2.new(0.0585683286, 0, 0.276397526, 0)
  30. TextButton.Size = UDim2.new(0, 408, 0, 184)
  31. TextButton.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  32. TextButton.Font = Enum.Font.SourceSans
  33. TextButton.Text = "Escape"
  34. TextButton.TextSize = 100
  35. --TextButton Script Exec.
  36. TextButton.MouseButton1Click:connect(function()
  37. local x = "-1175"
  38. local y = "17"
  39. local z = "-1443"
  40. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(x, y, z))
  41. end)
  42. --Put On End
  43. local UserInputService = game:GetService("UserInputService")
  44.  
  45. local gui = Frame
  46.  
  47. local dragging
  48. local dragInput
  49. local dragStart
  50. local startPos
  51.  
  52. local function update(input)
  53. local delta = input.Position - dragStart
  54. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  55. end
  56.  
  57. gui.InputBegan:Connect(function(input)
  58. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  59. dragging = true
  60. dragStart = input.Position
  61. startPos = gui.Position
  62.  
  63. input.Changed:Connect(function()
  64. if input.UserInputState == Enum.UserInputState.End then
  65. dragging = false
  66. end
  67. end)
  68. end
  69. end)
  70.  
  71. gui.InputChanged:Connect(function(input)
  72. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  73. dragInput = input
  74. end
  75. end)
  76.  
  77. UserInputService.InputChanged:Connect(function(input)
  78. if input == dragInput and dragging then
  79. update(input)
  80. end
  81. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement