I am making a new speed run, and I need it to play this audio in PlayerGui. The audio is I it, and the only problem is something about the OnTouched part (Not shown in Output, just a guess). (This is a LocalScript)
1 | script.Parent.OnTouched:connect( function (hit, player) |
2 | local songs = game.Players.LocalPlayer.PlayerGui.Music |
3 | songs.Level 1 :Stop() |
4 | songs.Level 1 :Play() |
5 | end ) |
Thanks in advance!
1 | script.Parent.Touched:connect( function (hit, player) |
2 | local songs = game.Players.LocalPlayer.PlayerGui.Music |
3 | songs.Level 1 :Stop() |
4 | songs.Level 1 :Play() |
5 | end ) |
Fixed, for you. You put 'OnTouched', when the event is supposed to be 'Touched'.