Here's the script that I've gotten together, for some reason it wont work. It's a local script:
local Player = game.Players.LocalPlayer
while true do
wait(.1)
local torso = Player.Character.Torso
local ray = Ray.new(torso.Position, Vector3.new(0, -10, 0) * 500)
local part, endPoint = workspace:FindPartOnRay(ray)
if part.Name == ("Grass") then
print("GRASS")
end
end
basically I'm trying to make a ray from the torso, go down from the torso, detect if it hits a block. If the "block" name is "Grass" then print("GRASS"). Thank you for your help.

2 comments
Why not just use the touched event?
Imagine you have an RPG game and you want to reduce lag, if he uses a lot of parts for a quest system, it can cause lag