Fixes for playerList in corescirpts

This commit is contained in:
Lewin Kelly 2023-06-03 19:13:52 +01:00
parent 9c28950b36
commit 5b4069d528
1 changed files with 96 additions and 112 deletions

View File

@ -318,36 +318,42 @@ ScreenGui = New "Frame", "PlayerListScreen"
BackgroundTransparency: 1
Parent: script.Parent
* New "Frame", "LeaderBoardFrame"
MainFrame = New "Frame", "LeaderBoardFrame"
Position: UDim2.new 1, -150, 0.005, 0
Size: UDim2.new 0, 150, 0, 800
BackgroundTransparency: 1
Parent: ScreenGui
--frame used for expanding leaderstats when frame is 'focused'
* New "Frame", "FocusFrame"
FocusFrame = New "Frame", "FocusFrame"
Position: UDim2.new 0, 0, 0, 0
Size: UDim2.new 1, 0, 0, 100
BackgroundTransparency: 1
Active: true
Parent: MainFrame
-- HEADER
* New "Frame", "Header"
HeaderFrame = New "Frame", "Header"
BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0, 0
Size: UDim2.new 1, 0, 0.07, 0
Parent: MainFrame
* MakeBackgroundGuiObj "http://www.roblox.com/asset/?id=94692054"
* New "ImageButton", "MaximizeButton"
HeaderFrameHeight = HeaderFrame.Size.Y.Scale
MaximizeButton = New "ImageButton", "MaximizeButton"
Active: true
BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0, 0
Size: UDim2.new 1, 0, 1, 0
Parent: HeaderFrame
* New "TextLabel", "PlayerName"
HeaderName = New "TextLabel", "PlayerName"
BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0.01, 0
Size: UDim2.new 0.98, 0, 0.38, 0
Parent: HeaderFrame
Font: "ArialBold"
Text: LocalPlayer.Name
FontSize: "Size24"
@ -358,10 +364,11 @@ ScreenGui = New "Frame", "PlayerListScreen"
TextXAlignment: "Right"
TextYAlignment: "Center"
* New "TextLabel", "PlayerScore"
HeaderScore = New "TextLabel", "PlayerScore"
BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0.4, 0
Size: UDim2.new 0.98, 0, 0, 30
Parent: HeaderFrame
Font: "ArialBold"
Text: ""
FontSize: "Size24"
@ -371,18 +378,6 @@ ScreenGui = New "Frame", "PlayerListScreen"
TextStrokeTransparency: 1
TextXAlignment: "Right"
{
LeaderBoardFrame: MainFrame
MainFrame:
:FocusFrame
Header: HeaderFrame
HeaderFrame:
:MaximizeButton
PlayerName: HeaderName
PlayerScore: HeaderScore
:BottomShiftFrame
} = ScreenGui
HeaderFrameHeight = HeaderFrame.Size.Y.Scale
-- BOTTOM
@ -393,7 +388,7 @@ BottomShiftFrame = New "Frame", "BottomShiftFrame"
Size: UDim2.new 1, 0, 1, 0
Parent: MainFrame
* New "Frame", "Bottom"
BottomFrame = New "Frame", "Bottom"
BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0.07, 0
Size: UDim2.new 1, 0, 0.03, 0
@ -401,27 +396,21 @@ BottomShiftFrame = New "Frame", "BottomShiftFrame"
* MakeBackgroundGuiObj "http://www.roblox.com/asset/?id=94754966"
* New "ImageButton", "bigbutton"
ExtendButton = New "ImageButton", "bigbutton"
Active: true
BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0, 0
Size: UDim2.new 1, 0, 1.5, 0
ZIndex: 3
Parent: BottomFrame
* New "ImageButton", "extendTab"
ExtendTab = New "ImageButton", "extendTab"
Active: true
BackgroundTransparency: 1
Image: "http://www.roblox.com/asset/?id=94692731"
Position: UDim2.new 0.608, 0, 0.3, 0
Size: UDim2.new 0.3, 0, 0.7, 0
{
Bottom: BottomFrame
Bottom:
bigbutton: ExtendButton
extendTab: ExtendTab
} = BottomShiftFrame
Parent: BottomFrame
TopClipFrame = New "Frame", "ListFrame"
BackgroundTransparency: 1
@ -430,37 +419,32 @@ TopClipFrame = New "Frame", "ListFrame"
Parent: MainFrame
ClipsDescendants: true
* New "Frame", "BottomFrame"
BottomClipFrame = New "Frame", "BottomFrame"
BackgroundTransparency: 1
Position: UDim2.new 0, 0, -0.8, 0
Size: UDim2.new 1, 0, 1, 0
Parent: TopClipFrame
ClipsDescendants: true
* New "Frame", "ScrollBarFrame"
ScrollBarFrame = New "Frame", "ScrollBarFrame"
BackgroundTransparency: 1
Position: UDim2.new 0.987, 0, 0.8, 0
Size: UDim2.new 0.01, 0, 0.2, 0
Parent: BottomClipFrame
* New "Frame", "ScrollBar"
ScrollBar = New "Frame", "ScrollBar"
BackgroundTransparency: 0
BackgroundColor3: Color3.new 0.2, 0.2, 0.2
Position: UDim2.new 0, 0, 0, 0
Size: UDim2.new 1, 0, 0.5, 0
ZIndex: 5
Parent: ScrollBarFrame
* New "Frame", "SubFrame"
ListFrame = New "Frame", "SubFrame"
BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0.8, 0
Size: UDim2.new 1, 0, 1, 0
{
BottomFrame: BottomClipFrame
BottomClipFrame:
:ScrollBarFrame
ScrollBarFrame:
:ScrollBar
SubFrame: ListFrame
} = TopClipFrame
Parent: BottomClipFrame
PopUpClipFrame = New "Frame", "PopUpFrame",
BackgroundTransparency: 1