I want to create a GUI where, when I click a button, an emote display pops up, and when I click an emote, it closes.
Currently, my display won't even show when the button is clicked. This is my code, can anyone help me?
local button = game.StarterGui.ScreenGui.EmoteButton.TextButton
local emoteDisplay = game.StarterGui.ScreenGui.EmoteDisplay
local emoteDisplayButtons = emoteDisplay.Emotes:GetChildren()
button.MouseButton1Click:Connect(function()
print("Emote Button clicked.")
emoteDisplay.Visible = true
for emote in emoteDisplayButtons do
emote.MouseButton1Click:Connect(function()
print(emote.Name + "Button clicked")
emoteDisplay.Visible = false
end)
end
end)