Running1 = RunService.Stepped:Connect(function(step)
local Rays = Private:CreateRays(object)
if not workspace:FindPartOnRayWithIgnoreList(Rays[6],{object}) then
object.Position -= Vector3.new(0,1/object.Mass*workspace.Gravity,0)
else
print('hit ground')
end
end)
There’s nothing wrong with any of the variables here, it’s just that FindPartOnRay isn’t printing “hit ground’ when it finds a part, the Ray I’m using points downward 5 studs from the part’s current position and never detects a part below it
