Advertisement
xxPH4NTOM

Untitled

Jun 15th, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 KB | None | 0 0
  1. local PlayerSelect = Instance.new("ScreenGui")
  2. local Container = Instance.new("Frame")
  3. local ScrollingFrame = Instance.new("ScrollingFrame")
  4. local TopBar = Instance.new("Frame")
  5. local Min = Instance.new("TextButton")
  6. local DragDetector = Instance.new("Frame")
  7. local ScrollingFrame_2 = Instance.new("ScrollingFrame")
  8. local UIListLayout = Instance.new("UIListLayout")
  9.  
  10. PlayerSelect.Name = "PlayerSelect"
  11. PlayerSelect.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  12. PlayerSelect.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  13. PlayerSelect.DisplayOrder = 2147483647
  14. PlayerSelect.ResetOnSpawn = false
  15. PlayerSelect.IgnoreGuiInset = true
  16.  
  17. Container.Name = "Container"
  18. Container.Parent = PlayerSelect
  19. Container.AnchorPoint = Vector2.new(0.5, 0.0250000004)
  20. Container.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  21. Container.BackgroundTransparency = 1.000
  22. Container.BorderSizePixel = 0
  23. Container.ClipsDescendants = true
  24. Container.Position = UDim2.new(0.5, 0, 0.261799753, 0)
  25. Container.Size = UDim2.new(0.100000001, 0, 0.5, 0)
  26.  
  27. ScrollingFrame.Parent = Container
  28. ScrollingFrame.Active = true
  29. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. ScrollingFrame.BackgroundTransparency = 1.000
  31. ScrollingFrame.Size = UDim2.new(1, 0, 0.0500000007, 0)
  32. ScrollingFrame.ScrollBarThickness = 0
  33. ScrollingFrame.ScrollingEnabled = false
  34.  
  35. TopBar.Name = "TopBar"
  36. TopBar.Parent = ScrollingFrame
  37. TopBar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  38. TopBar.BorderSizePixel = 0
  39. TopBar.ClipsDescendants = true
  40. TopBar.Size = UDim2.new(1, 0, 0, 20)
  41. TopBar.ZIndex = 2
  42.  
  43. Min.Name = "Min"
  44. Min.Parent = TopBar
  45. Min.AnchorPoint = Vector2.new(1, 0)
  46. Min.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  47. Min.BackgroundTransparency = 1.000
  48. Min.BorderSizePixel = 0
  49. Min.Position = UDim2.new(1, 0, 0, 0)
  50. Min.Size = UDim2.new(0.150000006, 0, 1, 0)
  51. Min.ZIndex = 2
  52. Min.Font = Enum.Font.SourceSans
  53. Min.Text = "-"
  54. Min.TextColor3 = Color3.fromRGB(255, 255, 255)
  55. Min.TextScaled = true
  56. Min.TextSize = 14.000
  57. Min.TextWrapped = true
  58.  
  59. DragDetector.Name = "DragDetector"
  60. DragDetector.Parent = TopBar
  61. DragDetector.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  62. DragDetector.BackgroundTransparency = 1.000
  63. DragDetector.BorderSizePixel = 0
  64. DragDetector.Size = UDim2.new(0.850000024, 0, 1, 0)
  65. DragDetector.ZIndex = 2
  66.  
  67. ScrollingFrame_2.Parent = ScrollingFrame
  68. ScrollingFrame_2.Active = true
  69. ScrollingFrame_2.AnchorPoint = Vector2.new(0, 1)
  70. ScrollingFrame_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  71. ScrollingFrame_2.BackgroundTransparency = 0.900
  72. ScrollingFrame_2.BorderSizePixel = 0
  73. ScrollingFrame_2.Position = UDim2.new(0, 0, 0.975000024, 0)
  74. ScrollingFrame_2.Size = UDim2.new(1, 0, 0.949999988, 0)
  75. ScrollingFrame_2.ScrollBarThickness = 0
  76.  
  77. UIListLayout.Parent = ScrollingFrame_2
  78. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  79.  
  80. local function UZLI_fake_script() -- TopBar.LocalScript
  81. local script = Instance.new('LocalScript', TopBar)
  82.  
  83. local uis = game:GetService('UserInputService')
  84. local rus = game:GetService('RunService')
  85. local topbar = script.Parent
  86. local min = topbar.Min
  87. local dragger = topbar.DragDetector
  88. local scrollframe = topbar.Parent
  89. local container = scrollframe.Parent
  90.  
  91. local hovered = false
  92. local held = false
  93.  
  94. local open = false
  95.  
  96. dragger.MouseEnter:Connect(function()
  97. hovered = true
  98. end)
  99.  
  100. dragger.MouseLeave:Connect(function()
  101. hovered = false
  102. end)
  103.  
  104. uis.InputBegan:Connect(function(k)
  105. if k.UserInputType == Enum.UserInputType.MouseButton1 and hovered then
  106. held = true
  107. end
  108. end)
  109.  
  110. uis.InputEnded:Connect(function(k)
  111. if k.UserInputType == Enum.UserInputType.MouseButton1 then
  112. held = false
  113. end
  114. end)
  115.  
  116. rus.RenderStepped:Connect(function()
  117. if held then
  118. local p = uis:GetMouseLocation()
  119. container:TweenPosition(UDim2.new(0,p.X,0,p.Y),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.075,true)
  120. end
  121. end)
  122.  
  123. min.MouseButton1Down:Connect(function()
  124. if open then
  125. scrollframe:TweenSize(UDim2.new(1,0,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.1,true)
  126. else
  127. scrollframe:TweenSize(UDim2.new(1,0,0.05,0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.1,true)
  128. end
  129. open = not open
  130. end)
  131. end
  132. coroutine.wrap(UZLI_fake_script)()
  133. local function WMKR_fake_script() -- Container.LocalScript
  134. local script = Instance.new('LocalScript', Container)
  135.  
  136. local fr = script.Parent.ScrollingFrame.ScrollingFrame
  137.  
  138. local function updateList()
  139. for i,v in pairs(fr:GetChildren()) do
  140. if v:IsA('TextButton') then
  141. v:Remove()
  142. end
  143. end
  144. for i,v in pairs(game.Players:GetPlayers()) do
  145. if v ~= game.Players.LocalPlayer.Name then
  146. local btn = Instance.new('TextButton')
  147. btn.Parent = fr
  148. btn.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  149. btn.BorderSizePixel = 0
  150. btn.Size = UDim2.new(1, 0, 0.0250000004, 0)
  151. btn.Font = Enum.Font.SourceSansLight
  152. btn.Text = v.Name
  153. btn.TextColor3 = Color3.fromRGB(200, 200, 200)
  154. btn.TextScaled = true
  155. btn.TextSize = 14.000
  156. btn.TextWrapped = true
  157. btn.MouseButton1Down:Connect(function()
  158. _G.targetPlr = v
  159. end)
  160. end
  161. end
  162. end
  163.  
  164. delay(1,updateList)
  165.  
  166. game.Players.PlayerAdded:Connect(updateList)
  167. game.Players.PlayerRemoving:Connect(updateList)
  168.  
  169. spawn(function()
  170. while wait() do
  171. fr.ScrollingEnabled = not (#game.Players:GetPlayers() < 20)
  172. end
  173. end)
  174. end
  175. coroutine.wrap(WMKR_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement