I am trying to Instantiate prefab (weapon) on a transform. This is script I found online but it doesn’t work giving error:
var Weapon1 = Instantiate(GunType, Weapon1Spawn.transform.localPosition, Weapon1Spawn.transform.localRotation);
Weapon1.transform.parent = Weapon1Spawn.transform;
Error I get with that: