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

Double Cloning Glitch?

Asked by
TofuBytes 500 Moderation Voter
10 years ago

For some reason this line of code is cloning the GUI twice into the PlayerGui. I did try to find the fix to clone it once, but nothing seemed to be found. Any ideas on what is wrong?

if script:findFirstChild("SkipCutsceneGuiValue") then
    local gui = script.SkipCutsceneGui:clone()
    gui.Parent = game.Players.LocalPlayer.PlayerGui
    gui.Cutscene.Value = script
    gui.Main.Debug.Disabled = false
    gui.PlazaSounds.Disabled = false
    script.SkipCutsceneGuiValue.Value = gui
end

Answer this question