Hi. I am working on changing my gun to fastcast. I am doing well but I’m having one problem where the raycastparams in the fastcast isn’t filtering out the player’s character. When I shoot the gun towards the player’s character it deals damage the the character.
robloxapp-20220918-1138288.wmv (3.6 MB)
I looked in the devforum but I couldn’t really find anything. The RaycastParams code is below.
local params = RaycastParams.new()
script.Parent.Equipped:Connect(function()
params.FilterDescendantsInstances = {script.Parent.Parent}
end)
params.FilterType = Enum.RaycastFilterType.Blacklist