Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

When I have a Cutscene Camera / Camera Interpolation, can I add a gui in it?

Asked by
CedCed6 32
4 years ago

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?

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

You could toggle the visibility of the gui when the cutscene is triggered.

01--Local Script
02 
03local plr = game.Players.LocalPlayer
04local 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.
05local ui_element = plr_gui:WaitForChild("put the name of the gui here")
06 
07function 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
11end
1
Thank you very much! CedCed6 32 — 4y
Ad

Answer this question