function waitForChild(r,i)local j=r:findFirstChild(i)if j then return j end while true do j=r.ChildAdded:wait()if j.Name==i then return j end end end function newSound(r,i)local j=Instance.new("\083\111\117\110\100")j.SoundId=i j.Name=r j.archivable=false j.Parent=script.Parent.Head return j end
---This server script creates the sounds and also exists so that it can be easily copied into an NPC and create sounds for that NPC.
--Remove the local script if you copy this into an NPC.
function waitForChild(parent, childName)
	local child = parent:findFirstChild(childName)
	if child then
		return child
	end
	while true do
		child = parent.ChildAdded:wait()
		if child.Name == childName then
			return child
		end
	end
end
function newSound(name, id)
	local sound = Instance.new("Sound")
	sound.SoundId = id
	sound.Name = name
	sound.archivable = false
	sound.Parent = script.Parent.Head
	return sound
end
