tilemap.WorldToCell() and tilemap.GetCellCenterLocal() returning (0,0,0)

I am trying to make a prefab Bullet to destroy tiles in the tilemap. i managed to get the hit position of the tile but when converting it to tilemap position it always returns (0,0,0). I tested it out with manually changing the output to the actual hit point and it works.
the Tilemap is also a prefab, and has tilemap collider 2D.
the bullet prefab has box collider 2D, rigidbody 2D and the script.

[ RESOLVED ]

So what ended up being the issue? Dealing with that right now when instantiating.