local taskbar = script.Parent
local main = script.Parent.Parent.Applications.Main
for i,v in pairs(taskbar:GetChildren()) do
local Value = v.AppName.Value
v.MouseButton1Click:Connect(function()
main.["Value"].Visible = true
end)
end
So that is what i have right now. i am doing this to save my time so if i ever need to change the name of the frame i dont need to change a script.

2 comments
and what i am wanting to happen is when the button gets clicked the frame aka app with that value as its name will be visible
Replace line 8 with "main[Value].Visible = true"