Scriptorz5

resize gui

May 5th, 2018 (edited)
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. --Gui------------------------------------------------------------------------------------------------------------
  2. vip = ""
  3. plyr = game.Players:findFirstChild(vip)
  4. pg = plyr:findFirstChild("PlayerGui")
  5.  
  6. sc = Instance.new("ScreenGui")
  7. sc.Name = "unHide"
  8. sc.Parent = pg
  9.  
  10. tx = Instance.new("TextButton")
  11. tx.BackgroundTransparency = 0.5
  12. tx.Name = "Stats"
  13. tx.Parent = sc
  14. tx.Position = UDim2.new(0, 0, 0, 200)
  15. tx.Size = UDim2.new(0, 199, 0, 200)
  16. tx.Text = "Brick"
  17. tx.TextColor3 = Color3.new(1, 1, 1)
  18. tx.BackgroundColor3 = Color3.new(0, 0, 0)
  19.  
  20. t = Instance.new("TextLabel")
  21. t.BackgroundTransparency = 0.3
  22. t.Name = "Stats"
  23. t.Parent = sc
  24. t.Position = UDim2.new(0, 0, 0, 200)
  25. t.Size = UDim2.new(0, 0, 0, 200)
  26. t.Text = ""
  27. t.BackgroundColor3 = Color3.new(200, 80, 200)
  28.  
  29. he = Instance.new("TextLabel")
  30. he.BackgroundTransparency = 0.3
  31. he.Name = "Stats"
  32. he.Parent = sc
  33. he.Position = UDim2.new(0, 0, 0, 180)
  34. he.Size = UDim2.new(0, 99, 0, 20)
  35. he.Text = "" ..plyr.Character.Humanoid.Health
  36. he.BackgroundColor3 = Color3.new(200, 80, 200)
  37.  
  38. w = Instance.new("TextLabel")
  39. w.BackgroundTransparency = 0.3
  40. w.Name = "Stats"
  41. w.Parent = sc
  42. w.Position = UDim2.new(0, 0, 0, 160)
  43. w.Size = UDim2.new(0, 99, 0, 20)
  44. w.Text = "" ..plyr.Character.Humanoid.WalkSpeed
  45. w.BackgroundColor3 = Color3.new(200, 60, 180)
  46.  
  47. mh = Instance.new("TextLabel")
  48. mh.BackgroundTransparency = 0.3
  49. mh.Name = "Stats"
  50. mh.Parent = sc
  51. mh.Position = UDim2.new(0, 0, 0, 140)
  52. mh.Size = UDim2.new(0, 99, 0, 20)
  53. mh.Text = "" ..plyr.Character.Humanoid.MaxHealth
  54. mh.BackgroundColor3 = Color3.new(200, 40, 160)
  55.  
  56. tx.MouseButton1Click:connect(function()
  57. human = plyr.Character:findFirstChild("Humanoid")
  58. if human ~= nil then
  59. t.Size = UDim2.new(0, 10, 0, 200)
  60. wait(1)
  61. t.Size = UDim2.new(0, 20, 0, 200)
  62. wait(1)
  63. t.Size = UDim2.new(0, 30, 0, 200)
  64. wait(1)
  65. t.Size = UDim2.new(0, 40, 0, 200)
  66. wait(1)
  67. t.Size = UDim2.new(0, 50, 0, 200)
  68. wait(1)
  69. t.Size = UDim2.new(0, 60, 0, 200)
  70. wait(1)
  71. t.Size = UDim2.new(0, 70, 0, 200)
  72. wait(1)
  73. t.Size = UDim2.new(0, 80, 0, 200)
  74. wait(1)
  75. t.Size = UDim2.new(0, 90, 0, 200)
  76. wait(1)
  77. t.Size = UDim2.new(0, 100, 0, 200)
  78. wait(1)
  79. t.Size = UDim2.new(0, 110, 0, 200)
  80. wait(1)
  81. t.Size = UDim2.new(0, 120, 0, 200)
  82. wait(1)
  83. t.Size = UDim2.new(0, 130, 0, 200)
  84. wait(1)
  85. t.Size = UDim2.new(0, 140, 0, 200)
  86. wait(1)
  87. t.Size = UDim2.new(0, 150, 0, 200)
  88. wait(1)
  89. t.Size = UDim2.new(0, 160, 0, 200)
  90. wait(1)
  91. t.Size = UDim2.new(0, 170, 0, 200)
  92. wait(1)
  93. t.Size = UDim2.new(0, 180, 0, 200)
  94. wait(1)
  95. t.Size = UDim2.new(0, 190, 0, 200)
  96. wait(1)
  97. t.Size = UDim2.new(0, 199, 0, 200)
  98. wait(1)
  99. t.Size = UDim2.new(0, 0, 0, 200)
  100. wait(1)
  101. end
  102. end)
  103.  
  104. plyr.Chatted:connect(function(msg)
  105. if msg == "remove" then
  106. sc:Remove()
  107. end
  108. end)
  109.  
  110. while true do
  111. he.Text = "" ..plyr.Character.Humanoid.Health
  112. w.Text = "" ..plyr.Character.Humanoid.WalkSpeed
  113. mh.Text = "" ..plyr.Character.Humanoid.MaxHealth
  114. wait(0.001)
  115. end
Add Comment
Please, Sign In to add comment