Unity Animations wont stop looping

i attached an animation that i only want to play once to an in game object but it just loops, I need it to only play once, please help. im using the newest version of unity btw and no, there is no way to set it to legacy.

You need to set the animation to not loop. Check the docs.