function GetFloorMaterialFromPlayer(Player)
local raycastParams = RaycastParams.new()
raycastParams.FilterDescendantsInstances = {Player.Character}
raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
local ray = game.Workspace:Raycast(Player.Character.Head.Position, Vector3.new(0,-1,0), raycastParams)
warn(ray.Position)
end
GetFloorMaterialFromPlayer(game.Players.ChicaLower)
It errors with it saying that ray is nil. It has something to do with FilterDescendantsInstances. Because when I change that to 1 part, it works. How do I ignore a whole character?

3 comments
Logically, if it wants parts, you give it each individual part of the player's Character. It doesn't sound terrible unless the player is using (oh god) R15.
can i just do unpack(player.character:getchildren())?
no, not needed, FilterDescendantsInstance filters descendants of given instance, Decsendants are all of the Instances which are inside of the Instance so {player.Character} is right.