Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My audio name grabber script will not work?

Asked by
iRexBot 147
6 years ago

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

Log in to vote
0
Answered by 6 years ago

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!

Ad
Log in to vote
-1
Answered by 6 years ago

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

0
I was trying to get the song name via it's id iRexBot 147 — 6y
0
I am sorry. If I find something ill message you! Gamer_io 14 — 6y
0
ServerScriptStorage doesn't exist, and he is trying to use marketplaceservice to automatically grab the name of the sound. PyccknnXakep 1225 — 6y

Answer this question