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

Not valid member of playergui how to fix?

Asked by
markjac -11
5 years ago
Edited 5 years ago

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)
0
brick as a part or, brick as a button on the screen? A1exTatum 57 — 5y
0
you click a part and it teleports you and then plays the sound. Everything works but the sound playing markjac -11 — 5y
0
bump markjac -11 — 5y

1 answer

Log in to vote
0
Answered by
Hizar7 102
5 years ago

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

Ad

Answer this question