Physics.raycast

Ok so i got a unity package from the asset store it had not rigidbody but a script with gravity and it also had a ray cast system. when i tried to place objects with the plane they gave me the ray casting and placing objects worked, but when i tried it on terrain it did not.

Can you show the terrain inspector and the line of the script that casts the ray

Does your terrain has collider.