please help my raycast script doesnt detect dummy hands or legs
(fps game)
the dummy is R6
for some reason it only detects the head and torso
you might be thinking oh maybe cuz the arms and legs have can collide off but I tried with on and off and It doesnt work
script for raycast:
local params = RaycastParams.new()
params.RespectCanCollide = true
params.IgnoreWater = true
params.FilterDescendantsInstances = {Viewmodel,char}
local bullet = workspace:Raycast(cam.CFrame.Position,cam.CFrame.LookVector * 1000,params)
if bullet then
print(bullet.Instance)
end
no errors in script, it just doesn’t detect Arms and Legs and ONLY arms and legs
How exactly did you do these? A humanoid will force it to be off every frame so you might need to force it every .Stepped or presimulation depending when the raycast was fired.