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

My audio name grabber script will not work?

So this script won't work. I putted the script in workspace. It's suppost to print out the sound name but for some reason it doesn't. Can anyone fix this?

while wait(0.1) do
	print(game:GetService("MarketplaceService"):GetProductInfo(tonumber(game.Workspace.SoundFolder.GLOBAL_SOUND.SoundId,0)).Name)
end

Thanks in advanced

2 answers

Taken from the Roblox Wiki:

local Asset = game:GetService("MarketplaceService"):GetProductInfo(125378389) --id here
print(Asset.Name .. " :: " .. Asset.Description)

Please accept my answer if this helped!

I don't understand 100% what you need but printing is in output, and if you wan't it in chat this would work:

wait(0.1)
bc = BrickColor.new("Dark stone grey")
game.StarterGui:SetCore("ChatMakeSystemMessage", {
	Text = "(Put name of song) is playing now!";
	Font = Enum.Font.Cartoon;
	Color = bc.Color;
	FontSize = Enum.FontSize.Size96;	
})

And put the script in ServerScriptStorage! If the script of mine isn't the right script you need, It could be a problem of yours because it isn't in ServerScriptService! I hope I helped you out!

-Gamer_io

3 comments

0

I was trying to get the song name via it's id

0

I am sorry. If I find something ill message you!

0

ServerScriptStorage doesn't exist, and he is trying to use marketplaceservice to automatically grab the name of the sound.

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