What do I have to fix?

script.Audio.PlayAudio.OnServerEvent:connect(function(player)
	if sound.SoundId == "http://www.roblox.com/asset/?id="..soundid then
		sound:Resume()
	else
		sound.SoundId = "http://www.roblox.com/asset/?id="..soundid
		sound:Play()
		game.Workspace.FusionPlaying.Value = "Now Playing "..game:GetService("MarketplaceService"):GetProductInfo(soundid).Name
	end
end)

3 comments

0

Wich line?

0

Line 7.

0

I'm assuming FusionPlaying is an IntValue; you probably meant to use a StringValue.