I been trying to add a sound into a cloned object and then play it. Though I've not sure what I've been doing wrong since there's no error in Dev Console or Output.
local sword=game.ReplicatedStorage.sword1v:Clone() local sound = Instance.new("Sound") local soundid = "3031372793" local sp = sword.sound sp.SoundId = soundid sp.Volume = 3 sp:Play()
sound is not a valid member of MeshPart "sword1v"
You forgot to add "rbxassetid://" to the start of soundid
local sword=game.ReplicatedStorage.sword1v:Clone() sword.Parent = workspace -- set this to whatever it was intentionally supposed to be local sound = Instance.new("Sound") sound.Parent = sword local soundid = "rbxassetid://3031372793" -- If you want to play a sound from the roblox website put "rbxassetid://" before the id. sound.SoundId = soundid sound.Volume = 3 sound:Play()