Spawning And Using A Raycast

So In My Plants Vs Zombies Attempt I Came Across An Issue,
Whenever I Spawn A Pea Shooter It Doesn’t Cast The Ray Cast? Or Atleast I Think Thats An Issue. Any Way To Fix This?

Link: https://flowlab.io/game/play/1525057

have you tryed using proxmity?

Proxmity Would Trigger From Zombies In Other Lanes

you’re right. how do suns spawn im trying to see what is happening

Sun Doesn’t Spawn Yet
You Can Just Spawn Infinite Pea Shooters

Okay, I Figured Out The Problem… The Sprite Was Too Small It Wouldn’t Reach Either Raycasts : /
So Yeah Im Dumb

ok good (202020202020202020202020202200