So I was learning RayCasting and I came across an issue.
local mouse = game.Players.LocalPlayer:GetMouse()
local ray = Ray.new(script.Parent.Handle.Position,Vector3.new(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z))
mouse.Button1Down:Connect(function()
local partThatHit = workspace:FindPartOnRay(ray)
print(partThatHit)
end)
The script worked, but it only printed "Baseplate". I clearly pointed it to a Part, not a Model
I'm new to Rays and I need help. Can someone please give me a hand?

1 comment
Tysm!