I want to make a resizable playerlist (leaderboard) but I do not know how, I tried, the following script is what i tried
script.Parent.MouseButton1Down:connect(function(x, y)
script.Parent.Holding.Value = true
end)
script.Parent.MouseButton1Up:connect(function(x, y)
script.Parent.Holding.Value = false
end)
plr = game.Players.LocalPlayer
mouse = plr:GetMouse()
mouse.Move:connect(function()
if script.Parent.Holding.Value == true and mouse.X > script.Parent.AbsolutePosition.X and mouse.X < script.Parent.AbsolutePosition.X + 15 and mouse.Y > script.Parent.AbsolutePosition.Y and mouse.Y < script.Parent.AbsolutePosition.Y + 50 then
script.Parent.Parent:TweenSize(UDim2.new(1, 0, 0, mouse.Y - script.Parent.Parent.Size.Y.Offset))
else
script.Parent.Holding.Value = false
end
end)
Can anyone help me? Since I didn't make it clear the last edit, I want it to be drag-able across the y axis like the default roblox playerlist (leaderboard).

2 comments
Drag-able up/down or click to go up/down?
Dragable, I am sorry that I didn't make it clear so i am going to make it clear now.