Im trying to make it so if you press a button (SkipCutscene), it enables a frame with a team selecting button.
I made this script which works when i put it in the TeamGui folder
local tgui = script.Parent.Parent.Parent:WaitForChild("TeamGui")
local toggle = tgui:WaitForChild("Toggle")
script.Parent.MouseButton1Click:Connect(function(player)
toggle.Visible = true
end)
This script works just fine when put in one of the "TeamGui" buttons, but when i put it into the "Cutscene" GUI it just doesn't work.
https://gyazo.com/45b6ba5017a73e526f6edca7ccd92873
Is there a way to enable the frame called "Toggle" (in the TeamGui) by clicking the "SkipCutscene" button in the "Cutscene" GUI?

2 comments
There is no "Mousebutton1click" event for ViewPort Frames, Search for events of ViewPort Frame in Object Browser
You can change the GUI by going back to the parent of your current GUI