Can't access gameobject's RigidBody2D

Hello community!

I have simple problem.

I have created a prefab bullet and it has RigidBody2D component. But when i want to instantiate it from another script it won’t add any power to that rigidbody (via screen Screenshot - 11f33117675f54cc1fb3cfa5abb056b5 - Gyazo). Any ideas?

Hey man! I’m fairly new to Unity myself so i don’t know if I’ll be much help but i see two things, firstly maybe initialize your
“_rigidbody2D_bullet” reference in Start() function and secondly check if you script name matched your class name, i see both the script name and “_rigidbody2D_bullet” is underlined so the problem might be there?

I figured it out! I don’t do why but it works only if i instantiate the rigibody indsted of gameobject (https://gyazo.com/99bf089674356adac564cac075b75021) … Thx for help anyway <3