local handle = script.Parent.Handle script.Parent.Activated:Connect(function() local plr = game.Players.LocalPlayer local mouse = plr:GetMouse() local target = mouse.Target if target.Name == "Well Water" then local fishray = Ray.new(handle.Position,(handle.CFrame.p - mouse.Hit.p).unit * 100) local part, position = workspace:FindPartOnRay(fishray, plr.Character) if part and part.Name == ("Well Water") then print "success" end end end)
That most likely means a part isn't being found.
For your if command, do
if part and part.Parent and Part.Name == "Well Water" then --code end