Is this what you meant?
local Root = script.Parent:WaitForChild("HumanoidRootPart", 100)
local rayOrigin = Root.Position
local rayDirection = Vector3.new(0, 0, 10)
local raycastResult = workspace:Raycast(rayOrigin, rayDirection)
local function rayHit()
if raycastResult then
local hitPart = raycastResult.Instance
if hitPart.isClimbable == true then
print("Raycast hit!")
end
end
end
If so, I get no errors, however, the ray cast is not hitting the part/it’s not detecting it.