The parameters for FindPartOnRayWithIgnoreList are listed here:
On line seven, you have the player’s character as the second parameter when it should be the ignore table:
local Part, Position = game.Workspace:FindPartOnRayWithIgnoreList(raycast , ignore)
If you want to ignore the player insert it into ignore:
table.insert(plr.Character, ignore)
Also, there’s only two true/false values after that so determine what you want to put there based on the screenshot above.
