Advertisement
Waffle212

Untitled

Mar 27th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local prisonlife = Instance.new("Frame")
  6. local teleportgui = Instance.new("TextButton")
  7. local exit = Instance.new("TextButton")
  8. --Properties:
  9. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  10. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11.  
  12. prisonlife.Name = "prison life"
  13. prisonlife.Parent = ScreenGui
  14. prisonlife.Active = true
  15. prisonlife.BackgroundColor3 = Color3.new(0.92549, 1, 0.0823529)
  16. prisonlife.Position = UDim2.new(0.180522561, 0, 0.770131767, 0)
  17. prisonlife.Size = UDim2.new(0, 598, 0, 100)
  18.  
  19. teleportgui.Name = "teleport gui"
  20. teleportgui.Parent = prisonlife
  21. teleportgui.BackgroundColor3 = Color3.new(1, 0, 0)
  22. teleportgui.Size = UDim2.new(0, 200, 0, 50)
  23. teleportgui.Font = Enum.Font.SourceSans
  24. teleportgui.Text = "Teleport Gui"
  25. teleportgui.TextColor3 = Color3.new(0, 0, 0)
  26. teleportgui.TextScaled = true
  27. teleportgui.TextSize = 14
  28. teleportgui.TextWrapped = true
  29.  
  30. exit.Name = "exit"
  31. exit.Parent = prisonlife
  32. exit.BackgroundColor3 = Color3.new(1, 1, 1)
  33. exit.BackgroundTransparency = 1
  34. exit.Position = UDim2.new(0.924749136, 0, 0, 0)
  35. exit.Size = UDim2.new(0, 45, 0, 40)
  36. exit.Font = Enum.Font.SourceSans
  37. exit.Text = "X"
  38. exit.TextColor3 = Color3.new(0, 0, 0)
  39. exit.TextScaled = true
  40. exit.TextSize = 14
  41. exit.TextWrapped = true
  42. -- Scripts:
  43. function SCRIPT_VIRL70_FAKESCRIPT() -- teleportgui.LocalScript
  44. local script = Instance.new('LocalScript')
  45. script.Parent = teleportgui
  46. script.Parent.MouseButton1Click:Connect(function()
  47. loadstring(game:HttpGet(('https://pastebin.com/raw/7UsbCYKg'),true))()
  48. end)
  49.  
  50. end
  51. coroutine.resume(coroutine.create(SCRIPT_VIRL70_FAKESCRIPT))
  52. function SCRIPT_FHNO89_FAKESCRIPT() -- exit.LocalScript
  53. local script = Instance.new('LocalScript')
  54. script.Parent = exit
  55. script.Parent.MouseButton1Click:Connect(function()
  56. script.Parent.Parent.Visible = false
  57. end)
  58.  
  59.  
  60. end
  61. coroutine.resume(coroutine.create(SCRIPT_FHNO89_FAKESCRIPT))
  62. function SCRIPT_ICLN77_FAKESCRIPT() -- prisonlife.LocalScript
  63. local script = Instance.new('LocalScript')
  64. script.Parent = prisonlife
  65. local UserInputService = game:GetService("UserInputService")
  66.  
  67. local gui = script.Parent
  68.  
  69. local dragging
  70. local dragInput
  71. local dragStart
  72. local startPos
  73.  
  74. local function update(input)
  75. local delta = input.Position - dragStart
  76. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  77. end
  78.  
  79. gui.InputBegan:Connect(function(input)
  80. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  81. dragging = true
  82. dragStart = input.Position
  83. startPos = gui.Position
  84.  
  85. input.Changed:Connect(function()
  86. if input.UserInputState == Enum.UserInputState.End then
  87. dragging = false
  88. end
  89. end)
  90. end
  91. end)
  92.  
  93. gui.InputChanged:Connect(function(input)
  94. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  95. dragInput = input
  96. end
  97. end)
  98.  
  99. UserInputService.InputChanged:Connect(function(input)
  100. if input == dragInput and dragging then
  101. update(input)
  102. end
  103. end)
  104.  
  105. end
  106. coroutine.resume(coroutine.create(SCRIPT_ICLN77_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement