Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Help with removing a script in PlayerGui?

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

if player.PlayerGui:findFirstChild("SkipCutsceneGui").Skip.Selected = true then
    player.PlayerGui:findFirstChild("playermusic"):Remove() -- notice you missed the : colons for the method ":Remove()"
end

1 comment

0

Please accept my answer if you were satisfied with it. Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.