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,70 +318,65 @@ ScreenGui = New "Frame", "PlayerListScreen"
BackgroundTransparency: 1 BackgroundTransparency: 1
Parent: script.Parent Parent: script.Parent
* New "Frame", "LeaderBoardFrame" MainFrame = New "Frame", "LeaderBoardFrame"
Position: UDim2.new 1, -150, 0.005, 0 Position: UDim2.new 1, -150, 0.005, 0
Size: UDim2.new 0, 150, 0, 800 Size: UDim2.new 0, 150, 0, 800
BackgroundTransparency: 1 BackgroundTransparency: 1
Parent: ScreenGui
--frame used for expanding leaderstats when frame is 'focused' --frame used for expanding leaderstats when frame is 'focused'
* New "Frame", "FocusFrame" FocusFrame = New "Frame", "FocusFrame"
Position: UDim2.new 0, 0, 0, 0 Position: UDim2.new 0, 0, 0, 0
Size: UDim2.new 1, 0, 0, 100 Size: UDim2.new 1, 0, 0, 100
BackgroundTransparency: 1 BackgroundTransparency: 1
Active: true Active: true
Parent: MainFrame
-- HEADER -- HEADER
* New "Frame", "Header" HeaderFrame = New "Frame", "Header"
BackgroundTransparency: 1 BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0, 0 Position: UDim2.new 0, 0, 0, 0
Size: UDim2.new 1, 0, 0.07, 0 Size: UDim2.new 1, 0, 0.07, 0
Parent: MainFrame
* MakeBackgroundGuiObj "http://www.roblox.com/asset/?id=94692054" * MakeBackgroundGuiObj "http://www.roblox.com/asset/?id=94692054"
* New "ImageButton", "MaximizeButton" HeaderFrameHeight = HeaderFrame.Size.Y.Scale
Active: true MaximizeButton = New "ImageButton", "MaximizeButton"
BackgroundTransparency: 1 Active: true
Position: UDim2.new 0, 0, 0, 0 BackgroundTransparency: 1
Size: UDim2.new 1, 0, 1, 0 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 BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0.01, 0 Position: UDim2.new 0, 0, 0.01, 0
Size: UDim2.new 0.98, 0, 0.38, 0 Size: UDim2.new 0.98, 0, 0.38, 0
Font: "ArialBold" Parent: HeaderFrame
Text: LocalPlayer.Name Font: "ArialBold"
FontSize: "Size24" Text: LocalPlayer.Name
--TextScaled: true FontSize: "Size24"
TextColor3: Color3.new 1, 1, 1 --TextScaled: true
TextStrokeColor3: Color3.new 0, 0, 0 TextColor3: Color3.new 1, 1, 1
TextStrokeTransparency: 0 TextStrokeColor3: Color3.new 0, 0, 0
TextXAlignment: "Right" TextStrokeTransparency: 0
TextYAlignment: "Center" TextXAlignment: "Right"
TextYAlignment: "Center"
* New "TextLabel", "PlayerScore" HeaderScore = New "TextLabel", "PlayerScore"
BackgroundTransparency: 1 BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0.4, 0 Position: UDim2.new 0, 0, 0.4, 0
Size: UDim2.new 0.98, 0, 0, 30 Size: UDim2.new 0.98, 0, 0, 30
Font: "ArialBold" Parent: HeaderFrame
Text: "" Font: "ArialBold"
FontSize: "Size24" Text: ""
TextYAlignment: "Top" FontSize: "Size24"
-- TextScaled: true TextYAlignment: "Top"
TextColor3: Color3.new 1, 1, 1 -- TextScaled: true
TextStrokeTransparency: 1 TextColor3: Color3.new 1, 1, 1
TextXAlignment: "Right" TextStrokeTransparency: 1
TextXAlignment: "Right"
{
LeaderBoardFrame: MainFrame
MainFrame:
:FocusFrame
Header: HeaderFrame
HeaderFrame:
:MaximizeButton
PlayerName: HeaderName
PlayerScore: HeaderScore
:BottomShiftFrame
} = ScreenGui
HeaderFrameHeight = HeaderFrame.Size.Y.Scale HeaderFrameHeight = HeaderFrame.Size.Y.Scale
@ -393,35 +388,29 @@ BottomShiftFrame = New "Frame", "BottomShiftFrame"
Size: UDim2.new 1, 0, 1, 0 Size: UDim2.new 1, 0, 1, 0
Parent: MainFrame Parent: MainFrame
* New "Frame", "Bottom" BottomFrame = New "Frame", "Bottom"
BackgroundTransparency: 1 BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0.07, 0 Position: UDim2.new 0, 0, 0.07, 0
Size: UDim2.new 1, 0, 0.03, 0 Size: UDim2.new 1, 0, 0.03, 0
Parent: BottomShiftFrame Parent: BottomShiftFrame
* MakeBackgroundGuiObj "http://www.roblox.com/asset/?id=94754966" * MakeBackgroundGuiObj "http://www.roblox.com/asset/?id=94754966"
* New "ImageButton", "bigbutton" ExtendButton = New "ImageButton", "bigbutton"
Active: true Active: true
BackgroundTransparency: 1 BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0, 0 Position: UDim2.new 0, 0, 0, 0
Size: UDim2.new 1, 0, 1.5, 0 Size: UDim2.new 1, 0, 1.5, 0
ZIndex: 3 ZIndex: 3
Parent: BottomFrame
* 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
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
Parent: BottomFrame
TopClipFrame = New "Frame", "ListFrame" TopClipFrame = New "Frame", "ListFrame"
BackgroundTransparency: 1 BackgroundTransparency: 1
@ -430,37 +419,32 @@ TopClipFrame = New "Frame", "ListFrame"
Parent: MainFrame Parent: MainFrame
ClipsDescendants: true ClipsDescendants: true
* New "Frame", "BottomFrame" BottomClipFrame = New "Frame", "BottomFrame"
BackgroundTransparency: 1 BackgroundTransparency: 1
Position: UDim2.new 0, 0, -0.8, 0 Position: UDim2.new 0, 0, -0.8, 0
Size: UDim2.new 1, 0, 1, 0 Size: UDim2.new 1, 0, 1, 0
ClipsDescendants: true Parent: TopClipFrame
ClipsDescendants: true
* New "Frame", "ScrollBarFrame" ScrollBarFrame = New "Frame", "ScrollBarFrame"
BackgroundTransparency: 1 BackgroundTransparency: 1
Position: UDim2.new 0.987, 0, 0.8, 0 Position: UDim2.new 0.987, 0, 0.8, 0
Size: UDim2.new 0.01, 0, 0.2, 0 Size: UDim2.new 0.01, 0, 0.2, 0
Parent: BottomClipFrame
* New "Frame", "ScrollBar" ScrollBar = New "Frame", "ScrollBar"
BackgroundTransparency: 0 BackgroundTransparency: 0
BackgroundColor3: Color3.new 0.2, 0.2, 0.2 BackgroundColor3: Color3.new 0.2, 0.2, 0.2
Position: UDim2.new 0, 0, 0, 0 Position: UDim2.new 0, 0, 0, 0
Size: UDim2.new 1, 0, 0.5, 0 Size: UDim2.new 1, 0, 0.5, 0
ZIndex: 5 ZIndex: 5
Parent: ScrollBarFrame
* New "Frame", "SubFrame" ListFrame = New "Frame", "SubFrame"
BackgroundTransparency: 1 BackgroundTransparency: 1
Position: UDim2.new 0, 0, 0.8, 0 Position: UDim2.new 0, 0, 0.8, 0
Size: UDim2.new 1, 0, 1, 0 Size: UDim2.new 1, 0, 1, 0
Parent: BottomClipFrame
{
BottomFrame: BottomClipFrame
BottomClipFrame:
:ScrollBarFrame
ScrollBarFrame:
:ScrollBar
SubFrame: ListFrame
} = TopClipFrame
PopUpClipFrame = New "Frame", "PopUpFrame", PopUpClipFrame = New "Frame", "PopUpFrame",
BackgroundTransparency: 1 BackgroundTransparency: 1