var chestarmor : Transform;
var chest : Transform;
function Update () {
if (Input.GetKey (“e”)){
chestarmor.transform.parent = chest.transform;
chestarmor.transform.position = chest.transform.position;
chestarmor.transform.rotation = chest.transform.rotation;
chestarmor.localRotation.x = 3.26;
chestarmor.localRotation.y = -88.95;
chestarmor.localRotation.z = -87.51;
chestarmor.localPosition = Vector3(-1.54,0.031,2.7); // Set local position so that hat sits on top of the head.
}
}
this is my equip item script… yet it wont attatch properly and im currently stumped