Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How Do I make A Resize Button For A PlayerList (Leaderboard)?

Asked by 9 years ago

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).

0
Drag-able up/down or click to go up/down? alphawolvess 1784 — 9y
0
Dragable, I am sorry that I didn't make it clear so i am going to make it clear now. GuiHelperSince2014 70 — 9y

Answer this question