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
3 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 3 years ago
Edited 3 years ago

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

--Local Script

local plr = game.Players.LocalPlayer
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.
local ui_element = plr_gui:WaitForChild("put the name of the gui here")

function on_cutscene()
    --cutscene stuff here
    ui_element.Enabled = true --If it's a ScreenGui then use this
    --ui_element["Certain ui element here"].Visible = true --If it's NOT a ScreenGui then use this
end

1
Thank you very much! CedCed6 32 — 3y
Ad

Answer this question