I need help with making a script that closes the first frame when the next button is clicked then open the second frame after
This is the script I made:
Local NextButton = script.Parent
Local File1Frame = NextButton.Parent
Local File2Frame = File1Frame.Parent:WaitForChilr("File2Frame")
NextButton.MouseButton1Click:Connect(function()
NextButton.Parent.Visible = false
File1Frame.Parent:WaitForChilr("File2Frame").Visible = true
End