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

I want to make a speaker, this part is in a group, which is in a folder, how do I do this?

local Speaker_Styles = game.Workspace:WaitForChild("Speaker Styles")

game.Workspace["Speaker Style 1"].Part.Sound:Play()
game.Workspace["Speaker Style 1"].Part.Sound.MaxDistance = 50

1 answer

✓ Accepted answer
local Speaker_Styles = game.Workspace:WaitForChild("Speaker Styles")

Speaker_Styles["Speaker Style 1"].Part.Sound:Play()
Speaker_Styles["Speaker Style 1"].Part.Sound.MaxDistance = 50

You already defined a variable so no need to use game.Workspace over and over. Also, specify what Speaker_Styles. Is it a folder? Does it contain Speaker Style 1 ?

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