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
6 years ago
Edited 6 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 — 6y
0
you click a part and it teleports you and then plays the sound. Everything works but the sound playing markjac -11 — 6y
0
bump markjac -11 — 6y

1 answer

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

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

Ad

Answer this question