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

I need help with this sound play on click.?

Im trying to make this sound from the soundscape play when the player clicks this parent, but the error says "Cant set value"

function OnClick()
	game.Soundscape.Victory.IsPlaying= true
	script.Parent.Parent.Visible = false
	script.Parent.Parent.Parent.TutFrame.Visible = true
	
	
end




script.Parent.MouseButton1Down:connect(OnClick)

1 answer

✓ Accepted answer

The IsPlaying property is read only, to play a sound you must use Play() method e.g, game.Soundscape.Victory:Play()

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