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

Help with removing a script in PlayerGui?

Asked by
Lefryn 20
9 years ago

i'm honestly really bad with scripting lol

if player.PlayerGui.SkipCutsceneGui.Skip.Selected = true then
    player.PlayerGui.playermusic.remove()
end

If you need to see other parts of the scripts, let me know.

SkipCutsceneGui is a Gui and Skip is a textbutton i think

Playermusic is an audio

It states it has to do with the 'then' statement, I feel like i forgot to add something :L

1 answer

Log in to vote
0
Answered by 9 years ago
if player.PlayerGui:findFirstChild("SkipCutsceneGui").Skip.Selected = true then
    player.PlayerGui:findFirstChild("playermusic"):Remove() -- notice you missed the : colons for the method ":Remove()"
end
0
Please accept my answer if you were satisfied with it. Thanks legomaster38 39 — 9y
Ad

Answer this question