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

Not valid member of playergui how to fix?

Trying to play a sound for a player when they click a brick. Don't know why it is ScreenGui is not a valid member of PlayerGui even though it is.

red = script.Parent.Parent.Parent.Parent.PlayerGui.ScreenGui.red
game.ReplicatedStorage.Sounds.GoldRuby.OnServerEvent:Connect(function(plr)
	print("34234325232532")
	red:Play()
	
end)

3 comments

0

brick as a part or, brick as a button on the screen?

0

you click a part and it teleports you and then plays the sound. Everything works but the sound playing

0

bump

1 answer

✓ Accepted answer

Was A problem with the ScreenGui being apart of the playergui. Probably due to the remoteevent

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