Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PlayerSelect = Instance.new("ScreenGui")
- local Container = Instance.new("Frame")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local TopBar = Instance.new("Frame")
- local Min = Instance.new("TextButton")
- local DragDetector = Instance.new("Frame")
- local ScrollingFrame_2 = Instance.new("ScrollingFrame")
- local UIListLayout = Instance.new("UIListLayout")
- PlayerSelect.Name = "PlayerSelect"
- PlayerSelect.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- PlayerSelect.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- PlayerSelect.DisplayOrder = 2147483647
- PlayerSelect.ResetOnSpawn = false
- PlayerSelect.IgnoreGuiInset = true
- Container.Name = "Container"
- Container.Parent = PlayerSelect
- Container.AnchorPoint = Vector2.new(0.5, 0.0250000004)
- Container.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Container.BackgroundTransparency = 1.000
- Container.BorderSizePixel = 0
- Container.ClipsDescendants = true
- Container.Position = UDim2.new(0.5, 0, 0.261799753, 0)
- Container.Size = UDim2.new(0.100000001, 0, 0.5, 0)
- ScrollingFrame.Parent = Container
- ScrollingFrame.Active = true
- ScrollingFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScrollingFrame.BackgroundTransparency = 1.000
- ScrollingFrame.Size = UDim2.new(1, 0, 0.0500000007, 0)
- ScrollingFrame.ScrollBarThickness = 0
- ScrollingFrame.ScrollingEnabled = false
- TopBar.Name = "TopBar"
- TopBar.Parent = ScrollingFrame
- TopBar.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- TopBar.BorderSizePixel = 0
- TopBar.ClipsDescendants = true
- TopBar.Size = UDim2.new(1, 0, 0, 20)
- TopBar.ZIndex = 2
- Min.Name = "Min"
- Min.Parent = TopBar
- Min.AnchorPoint = Vector2.new(1, 0)
- Min.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Min.BackgroundTransparency = 1.000
- Min.BorderSizePixel = 0
- Min.Position = UDim2.new(1, 0, 0, 0)
- Min.Size = UDim2.new(0.150000006, 0, 1, 0)
- Min.ZIndex = 2
- Min.Font = Enum.Font.SourceSans
- Min.Text = "-"
- Min.TextColor3 = Color3.fromRGB(255, 255, 255)
- Min.TextScaled = true
- Min.TextSize = 14.000
- Min.TextWrapped = true
- DragDetector.Name = "DragDetector"
- DragDetector.Parent = TopBar
- DragDetector.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- DragDetector.BackgroundTransparency = 1.000
- DragDetector.BorderSizePixel = 0
- DragDetector.Size = UDim2.new(0.850000024, 0, 1, 0)
- DragDetector.ZIndex = 2
- ScrollingFrame_2.Parent = ScrollingFrame
- ScrollingFrame_2.Active = true
- ScrollingFrame_2.AnchorPoint = Vector2.new(0, 1)
- ScrollingFrame_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ScrollingFrame_2.BackgroundTransparency = 0.900
- ScrollingFrame_2.BorderSizePixel = 0
- ScrollingFrame_2.Position = UDim2.new(0, 0, 0.975000024, 0)
- ScrollingFrame_2.Size = UDim2.new(1, 0, 0.949999988, 0)
- ScrollingFrame_2.ScrollBarThickness = 0
- UIListLayout.Parent = ScrollingFrame_2
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- local function UZLI_fake_script() -- TopBar.LocalScript
- local script = Instance.new('LocalScript', TopBar)
- local uis = game:GetService('UserInputService')
- local rus = game:GetService('RunService')
- local topbar = script.Parent
- local min = topbar.Min
- local dragger = topbar.DragDetector
- local scrollframe = topbar.Parent
- local container = scrollframe.Parent
- local hovered = false
- local held = false
- local open = false
- dragger.MouseEnter:Connect(function()
- hovered = true
- end)
- dragger.MouseLeave:Connect(function()
- hovered = false
- end)
- uis.InputBegan:Connect(function(k)
- if k.UserInputType == Enum.UserInputType.MouseButton1 and hovered then
- held = true
- end
- end)
- uis.InputEnded:Connect(function(k)
- if k.UserInputType == Enum.UserInputType.MouseButton1 then
- held = false
- end
- end)
- rus.RenderStepped:Connect(function()
- if held then
- local p = uis:GetMouseLocation()
- container:TweenPosition(UDim2.new(0,p.X,0,p.Y),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.075,true)
- end
- end)
- min.MouseButton1Down:Connect(function()
- if open then
- scrollframe:TweenSize(UDim2.new(1,0,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.1,true)
- else
- scrollframe:TweenSize(UDim2.new(1,0,0.05,0),Enum.EasingDirection.Out,Enum.EasingStyle.Sine,0.1,true)
- end
- open = not open
- end)
- end
- coroutine.wrap(UZLI_fake_script)()
- local function WMKR_fake_script() -- Container.LocalScript
- local script = Instance.new('LocalScript', Container)
- local fr = script.Parent.ScrollingFrame.ScrollingFrame
- local function updateList()
- for i,v in pairs(fr:GetChildren()) do
- if v:IsA('TextButton') then
- v:Remove()
- end
- end
- for i,v in pairs(game.Players:GetPlayers()) do
- if v ~= game.Players.LocalPlayer.Name then
- local btn = Instance.new('TextButton')
- btn.Parent = fr
- btn.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
- btn.BorderSizePixel = 0
- btn.Size = UDim2.new(1, 0, 0.0250000004, 0)
- btn.Font = Enum.Font.SourceSansLight
- btn.Text = v.Name
- btn.TextColor3 = Color3.fromRGB(200, 200, 200)
- btn.TextScaled = true
- btn.TextSize = 14.000
- btn.TextWrapped = true
- btn.MouseButton1Down:Connect(function()
- _G.targetPlr = v
- end)
- end
- end
- end
- delay(1,updateList)
- game.Players.PlayerAdded:Connect(updateList)
- game.Players.PlayerRemoving:Connect(updateList)
- spawn(function()
- while wait() do
- fr.ScrollingEnabled = not (#game.Players:GetPlayers() < 20)
- end
- end)
- end
- coroutine.wrap(WMKR_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement