needs to play sound maybe theres a way to fix dis? also no erros even check dis https://prnt.sc/gapjp6

-- Created By TheDarkNinjaBro--


--== DO NOT TOUCH! ==--
--== The reason why this only function script is so long because it does a ProductInfo grabber which will put the Audio ID's title - 
--== - on textlabel ==--

player = script.Parent.Parent.Parent.Parent.Parent.Character.EpicRadio.Handle
market = game:GetService("MarketplaceService")

function MouseClick()
pcall(function()
local id
local box = script.Parent.Parent.SoundID
	if tonumber(box.Text)==nil then
		script.Parent.Parent.SoundID.Text = "Sound ID Is Invaild!"
		wait(2.5)
		script.Parent.Parent.SoundID.Text = "Sound ID"
end
if player.music.IsPlaying == true then
	player.music:Stop()
	wait(1)
	player.music.SoundId = "rbxassetid://"..script.Parent.Parent.SoundID.Text:match("%d+$")
	player.music.SoundId = "rbxassetid://"..script.Parent.Parent.SoundID.Text
	script.Parent.Parent.Info.SongTitle.Text = " "..market:GetProductInfo(tonumber(script.Parent.Parent.SoundID.Text:match("%d+$"))).Name
	wait(1)
	player.music:Play()
else
	player.music.SoundId = "rbxassetid://"..script.Parent.Parent.SoundID.Text:match("%d+$")
	player.music.SoundId = "rbxassetid://"..script.Parent.Parent.SoundID.Text
	script.Parent.Parent.Info.SongTitle.Text = " "..market:GetProductInfo(tonumber(script.Parent.Parent.SoundID.Text:match("%d+$"))).Name
	wait(1)
	player.music:Play()
end
end)
end
script.Parent.MouseButton1Click:connect(MouseClick)

print("Radio Isn't Working Right Plz Halp Theres No Sound When I Hit Play?")

2 comments

0

Do you have HttpService enabled?

0

Read my bio.