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

I am trying to clone sound, but it gives the error which says that it doesn't load..??

local sound1 = 144884872
local sound = Instance.new("Sound", Humanoid)
sound.SoundId = "rbxassetid://"..sound1
sound:Play()

2 answers

Like poke said, Sound1 is a number and you cannot convert a number to a string. The following should work:

sound.SoundId = "rbxassetid://"..tostring(sound1)

I think the issue is your are trying to combine a string Val with a number value. In order to fix this, use the tostring() function to convert the number into a string.

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