Advertisement
Waffle212

Untitled

Apr 30th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local secondpage = Instance.new("Frame")
  6. local _2 = Instance.new("TextLabel")
  7. local close = Instance.new("TextButton")
  8. local workspace = Instance.new("TextButton")
  9. --Properties:
  10. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12.  
  13. secondpage.Name = "second page"
  14. secondpage.Parent = ScreenGui
  15. secondpage.BackgroundColor3 = Color3.new(0.333333, 0.333333, 1)
  16. secondpage.Position = UDim2.new(0.15247108, 0, 0.257686675, 0)
  17. secondpage.Size = UDim2.new(0, 689, 0, 331)
  18.  
  19. _2.Name = "2"
  20. _2.Parent = secondpage
  21. _2.BackgroundColor3 = Color3.new(1, 1, 1)
  22. _2.BackgroundTransparency = 1
  23. _2.Position = UDim2.new(0.111709967, 0, 0, 0)
  24. _2.Size = UDim2.new(0, 534, 0, 44)
  25. _2.Font = Enum.Font.SourceSans
  26. _2.Text = "Ultimate Gui Page 2"
  27. _2.TextColor3 = Color3.new(0, 0, 0)
  28. _2.TextScaled = true
  29. _2.TextSize = 14
  30. _2.TextStrokeColor3 = Color3.new(0.666667, 0, 0)
  31. _2.TextStrokeTransparency = 0
  32. _2.TextWrapped = true
  33.  
  34. close.Name = "close"
  35. close.Parent = secondpage
  36. close.BackgroundColor3 = Color3.new(1, 1, 1)
  37. close.BackgroundTransparency = 1
  38. close.Position = UDim2.new(0.959361374, 0, 0, 0)
  39. close.Size = UDim2.new(0, 28, 0, 22)
  40. close.Font = Enum.Font.SourceSans
  41. close.Text = "X"
  42. close.TextColor3 = Color3.new(0, 0, 0)
  43. close.TextSize = 14
  44.  
  45. workspace.Name = "workspace"
  46. workspace.Parent = secondpage
  47. workspace.BackgroundColor3 = Color3.new(1, 1, 1)
  48. workspace.BorderSizePixel = 10
  49. workspace.Position = UDim2.new(0.0159651674, 0, 0.190332428, 0)
  50. workspace.Size = UDim2.new(0, 145, 0, 39)
  51. workspace.Font = Enum.Font.SourceSans
  52. workspace.Text = "Delete Workspace"
  53. workspace.TextColor3 = Color3.new(0.027451, 0.0431373, 1)
  54. workspace.TextScaled = true
  55. workspace.TextSize = 100
  56. workspace.TextStrokeColor3 = Color3.new(1, 0, 0)
  57. workspace.TextStrokeTransparency = 0
  58. workspace.TextWrapped = true
  59. -- Scripts:
  60. function SCRIPT_KVAI74_FAKESCRIPT() -- close.LocalScript
  61. local script = Instance.new('LocalScript')
  62. script.Parent = close
  63. script.Parent.MouseButton1Click:Connect(function()
  64. script.Parent.Parent.Visible = false
  65. end)
  66.  
  67.  
  68. end
  69. coroutine.resume(coroutine.create(SCRIPT_KVAI74_FAKESCRIPT))
  70. function SCRIPT_GRBQ65_FAKESCRIPT() -- secondpage.draggable
  71. local script = Instance.new('LocalScript')
  72. script.Parent = secondpage
  73. local UserInputService = game:GetService("UserInputService")
  74.  
  75. local gui = script.Parent
  76.  
  77. local dragging
  78. local dragInput
  79. local dragStart
  80. local startPos
  81.  
  82. local function update(input)
  83. local delta = input.Position - dragStart
  84. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  85. end
  86.  
  87. gui.InputBegan:Connect(function(input)
  88. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  89. dragging = true
  90. dragStart = input.Position
  91. startPos = gui.Position
  92.  
  93. input.Changed:Connect(function()
  94. if input.UserInputState == Enum.UserInputState.End then
  95. dragging = false
  96. end
  97. end)
  98. end
  99. end)
  100.  
  101. gui.InputChanged:Connect(function(input)
  102. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  103. dragInput = input
  104. end
  105. end)
  106.  
  107. UserInputService.InputChanged:Connect(function(input)
  108. if input == dragInput and dragging then
  109. update(input)
  110. end
  111. end)
  112.  
  113. end
  114. coroutine.resume(coroutine.create(SCRIPT_GRBQ65_FAKESCRIPT))
  115. function SCRIPT_GFZC69_FAKESCRIPT() -- workspace.LocalScript
  116. local script = Instance.new('LocalScript')
  117. script.Parent = workspace
  118. script.Parent.MouseButton1Click:Connect(function()
  119. game.Workspace:Destroy()
  120. end)
  121.  
  122. end
  123. coroutine.resume(coroutine.create(SCRIPT_GFZC69_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement