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

How do i locate the sound in playergui ???

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

0

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

0

i've tried it game.Players.Player.PlayerGui.S1 didn't work... :/

0

Anyone, please ?

1 answer

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