Generally, there are no specific legal restrictions, however, it is essential to be aware that neither beneficiaries nor their spouses are allowed to act as witnesses to your Will. Doing so would result in their disqualification from inheriting any assets specified in the document.
Limits to know about
Your freedom to choose is wide, but not unlimited. Under the Inheritance (Family Provision) Act 1971, a surviving spouse, an unmarried daughter, a minor son, or a child who cannot support themselves because of a disability can ask the court for reasonable provision from the estate if the Will leaves them too little. The Act applies throughout Malaysia but not to Muslims or to natives of Sabah and Sarawak. A gift to a witness, or the witness’s husband or wife, is also void (Wills Act 1959, section 9).
Legal basis and further reading
General information for Malaysia, not legal advice. For your own situation, speak to a lawyer.