When I have a Cutscene Camera/Camera Interpolation, can I add a gui in it / how do you add a gui when cutscene is triggered?
You could toggle the visibility of the gui when the cutscene is triggered.
01 | --Local Script |
02 |
03 | local plr = game.Players.LocalPlayer |
04 | local plr_gui = plr.PlayerGui --All players have their own folder that holds anything you had in StarterGui, so say you put a gui in StarterGui, it'll appear here when they join. |
05 | local ui_element = plr_gui:WaitForChild( "put the name of the gui here" ) |
06 |
07 | function on_cutscene() |
08 | --cutscene stuff here |
09 | ui_element.Enabled = true --If it's a ScreenGui then use this |
10 | --ui_element["Certain ui element here"].Visible = true --If it's NOT a ScreenGui then use this |
11 | end |