Over the last week or so I've been making Mr. Beast's Finger On The App in Roblox and I just got done with the main screen. I want to make it so when the Play TextButton is pressed, an event will fire that will make all the children in the frame disappear. I've tried multiple scripts using the Visible property that I don't have saved, but it doesn't matter because they didn't work. I am fairly new to this, so I apologize for any simple mistakes I may have made. I thought maybe I could make a for i, v in pairs loop to make the frame children disappear one by one. I do have this script saved though, and it goes as follows. (Remember that the Play button is the script's parent)
local tbt1 = script.Parent
local Frame = game.StarterGui.ScreenGui.Frame
local FrameChildren = {Frame:GetChildren()}
tbt1.MouseButton1Click:Connect(function()
for i, v in pairs(FrameChildren) do
FrameChildren.Visible = false
end
end)
I also put this in a LocalScript, so that might have something to do with this. Remember, I am not requesting for a script. I just want to improve on a current one to make it work. I am kind of new, so please don't bully me if I missed a simple error. Please tell me your solutions and I'll be glad to respond!
