I’m trying to convert a sound to an asset id, however, it does not work.
AssetString = "rbxassetid://"
ID = Sound.SoundId
SoundService:PlayLocalSound(AssetString..ID)
I’m trying to convert a sound to an asset id, however, it does not work.
AssetString = "rbxassetid://"
ID = Sound.SoundId
SoundService:PlayLocalSound(AssetString..ID)
The last line should just be
SoundService:PlayLocalSound(ID)
I tried using a part as a SoundSource, but that doesn’t work.
How would I get the sound to play?
]]
–[[
this doesnt work with the new sound service
local SoundService = game:GetService(“SoundService”)
local HTTP = game:GetService(“HttpService”)
local AssetString = “rbxassetid://”
local ID = 377760066
local AssetID = AssetString…ID
local Sound = SoundService:FindFirstChild(“Sound”)
if Sound then
Sound:Remove()
end
Sound = Instance.new(“Sound”)
Sound.SoundId = AssetID
Sound.Parent = SoundService
Sound:PlayLocal()
–]]