Advertisement
Waffle212

Untitled

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