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

I am making a music player and I am getting an error can anybody help?

Asked by 4 years ago

I am making a music player and I encountered this problem along the way.

local sound = soundService:WaitForChild("musicSound")
sound.SoundID = musicID

15:47:50.025 - SoundID is not a valid member of Sound

1 answer

Log in to vote
0
Answered by
raid6n 2196 Moderation Voter Community Moderator
4 years ago

You need to change "SoundID" to SoundId

Here:

local sound = soundService:WaitForChild("musicSound")
sound.SoundID = musicID

Also, I recommend not putting the output in your code block.

0
Thanks. aviajxnny 4 — 4y
0
No problem, good luck with your game. raid6n 2196 — 4y
Ad

Answer this question