-- Getting the buttons local TitleLabel = script.Parent:WaitForChild("TitleLabel") local…
- User
-- Getting the buttons local TitleLabel = script.Parent:WaitForChild("TitleLabel") local PlusButton = TitleLabel:WaitForChild("+") local AllButton = TitleLabel:WaitForChild("ALL") local EmoteButton = TitleLabel:WaitForChild("E") local MaleButton = TitleLabel:WaitForChild("M") local FemaleButton = TitleLabel:WaitForChild("W")
-- Function to hide all lists local function hideAllLists() Men_List.Visible = false Women_List.Visible = false Plus_List.Visible = false Emote_List.Visible = false All_List.Visible = false end
-- Functions to show specific lists local function showPlusList() hideAllLists() Plus_List.Visible = true end
local function showAllList() hideAllLists() All_List.Visible = true end
local function showEmoteList() hideAllLists() Emote_List.Visible = true end
local function showMaleList() hideAllLists() Men_List.Visible = true end
local function showFemaleList() hideAllLists() Women_List.Visible = true end
-- Connecting buttons to functions PlusButton.MouseButton1Click:Connect(showPlusList) AllButton.MouseButton1Click:Connect(showAllList) EmoteButton.MouseButton1Click:Connect(showEmoteList) MaleButton.MouseButton1Click:Connect(showMaleList) FemaleButton.MouseButton1Click:Connect(showFemaleList)
tell me all the ways you can improve this script in any way, shape or form, and i'll pick which you will do.
- Assistant