Hello, Peoples.
I was wondering how I could shoot a raycast from the players feet and detect the part there standing on…
Then blacklist that from the next raycast which would shoot from there head.
local MyRayCast = Ray.new(Head.CFrame.p, Head.CFrame.LookVector * 100)
local part = workspace:FindPartOnRay(MyRayCast)
if part and (Character.HumanoidRootPart.Position - part.Position).Magnitude <= 15 then
I want to do some type of check to make sure there not aiming at the ground/
I want it to adapt to whatever the player is standing on.
AE if its a roof filter the roof.
If there standing on the ground filter out the ground.
Whatever there standing on,
Whatever there standing on I wanted blacklisted.
Which was the ground, but I thought what if there standing on a roof.
I still need to filter out whatever is under there feet.
What do you need help with specifically? To raycast facing downwards, just give it a direction of (0, -distance, 0)
Then detect what it hits and do stuff with it.