# duplicator.Paste

- **Ortam:** Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/duplicator.Paste
- **Çeviri tarihi:** 2025-09-08

```lua
table, table duplicator.Paste( Player Player, table EntityList, table ConstraintList )
```

## Açıklama

"Verilen varlık listesi ve kısıtlama listesi ile tüm varlıkları oluşturur ve tablolarını döndürür"

EntityList'in her alt tablosunda [duplicator.CreateEntityFromTable](https://gmod.tr/wiki/duplicator.CreateEntityFromTable) fonksiyonunu çağırır. Eğer bir varlık gerçekten oluşturulursa, varlığın duplicator verisiyle birlikte [ENTITY:OnDuplicated](https://gmod.tr/wiki/ENTITY:OnDuplicated) fonksiyonunu, ardından [duplicator.ApplyEntityModifiers](https://gmod.tr/wiki/duplicator.ApplyEntityModifiers), [duplicator.ApplyBoneModifiers](https://gmod.tr/wiki/duplicator.ApplyBoneModifiers) ve son olarak [ENTITY:PostEntityPaste](https://gmod.tr/wiki/ENTITY:PostEntityPaste) fonksiyonu çağırılır.

Kısıtlamalar daha sonra [duplicator.CreateConstraintFromTable](https://gmod.tr/wiki/duplicator.CreateConstraintFromTable) ile oluşturulur.

## Argümanlar

1. [Player](https://gmod.tr/wiki/Player) **Player**: Bir şeyler oluşturmak isteyen oyuncu
2. [table](https://gmod.tr/wiki/table) **EntityList**: Varlıkları oluşturmak için kullanılacak duplicator verilerini içeren bir tablo
3. [table](https://gmod.tr/wiki/table) **ConstraintList**: Kısıtlamaları oluşturmak için kullanılacak duplicator verilerini içeren bir tablo

## Döndürülenler

1. [table](https://gmod.tr/wiki/table): Oluşturulan varlıkların listesi
2. [table](https://gmod.tr/wiki/table): Oluşturulan kısıtlamaların listesi

### Örnek

Sağ tıklama ile kopyalama verilerini kopyalamak ve sol tıklama ile orijinal bilgileriyle yapıştırmak için bir TOOL (araç) için kullanılan kod.

```lua
function TOOL:LeftClick( trace )
	if (SERVER) then
		duplicator.Paste(self:GetOwner(),Dupe.Entities,Dupe.Constraints)
		print("PASTED")
	end
	return true
end

function TOOL:RightClick( trace )
	if (SERVER and IsValid(trace.Entity)) then
		Dupe = duplicator.Copy(trace.Entity)
		print("COPIED")
	end
	return true
end
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/duplicator.Paste
