So I tried making a shield which seemed pretty simple but I kept running into a problem with the Shield not syncing up with the character and just having the shield not being able to be put away and just spawning alot of shields i need help to make the shield appear only when the button is pressed down and attached to the character i’ll show you the script I have right now for this please respond soon!
if (Input.GetKeyDown(Shield))
{
GameObject Shield = (GameObject)Instantiate(shield);
Shield.transform.localScale = transform.localScale;
Shield.transform.parent = Player.transform;
}