So i've got this "intromusic" i'm using i got sound in startergui and when player goes into game and clicks "skip intro" button which should remove the intro music sound in his playergui but how i locate the PlayerGui ? when the names can be random, what do i put in ?
print("Skip button loaded")
button = script.Parent
Screen = script.Parent.Parent.Parent
IntroMusic = game.Players -- <<<<<< right here how do i locate it ?
function onClicked(GUI)
Screen:remove()
IntroMusic:remove()
end
script.Parent.MouseButton1Click:connect(onClicked)

3 comments
idk if this is the answer, but when i think its just "game.Players.Player.PlayerGui.--Your sound name" thats what i do for my gambling system that uses PlayerGui
i've tried it game.Players.Player.PlayerGui.S1 didn't work... :/
Anyone, please ?