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

Expected identifier when parsing method name, got '/' please help me?

Hi, im very new at coding sorry I was practicing by adding sound and stuff when I got to sound id I just put in = song id but that didn't work so I googled it and someone had the same problem they said just add rbxassetid:// song id so I did and I've gotten an error message

Expected identifier when parsing method name, got '/'

here's the script

workspace.Sound.EmitterSize = 10000 workspace.Sound.SoundId = rbxassetid://1572404379

if workspace.Sound.Looped == false then workspace.Sound.Looped = true

end

workspace.Sound.Playing = true

1 comment

0

So you did put an end right? Sorry it is hard to understand without code format to use code format you just need to use codeblocks and make your code go between the two lines

1 answer

You have to put quotation marks around the ID so it can be a string. Here is the fixed code:

workspace.Sound.EmitterSize = 10000
workspace.Sound.SoundId = "rbxassetid://1572404379"
if workspace.Sound.Looped == false then
	workspace.Sound.Looped = true
	--you don't need the if statement since it will end up being true no matter what
end
workspace.Sound.Playing = true

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