So, I was gonna take a hit at patching a problem with ACS without completely revamping it, as I don’t want to put that much work into a system I will most likely never use, so I decided to do a raycast when the damage event is fired, problem is the raycast prints nil, this is what i did
local RCPerms = RaycastParams.new()
RCPerms.FilterDescendantsInstances = {Player.Character}
RCPerms.FilterType = Enum.RaycastFilterType.Blacklist
local Raycast = workspace:Raycast(Player.Character.Head.Position,(Player.Character.Head.CFrame.p - VitimaHuman.Parent.Head.CFrame.p),RCPerms)
print(Raycast)
if Raycast then
print("Object/terrain hit:", Raycast.Instance:GetFullName())
print("Hit position:", Raycast.Position)
print("Surface normal at the point of intersection:", Raycast.Normal)
print("Material hit:", Raycast.Material.Name)
end
And raycast is nil so it doesnt continue, i’d firgure someone knows what to do here