Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would i go about making a hitbox using :GetTouchingParts() ?

Asked by 3 years ago
while wait() do
local results = script.Parent:GetTouchingParts()
if table.find(results,"Torso") then
print('hi')
    end
    end

this didnt work and im not sure why

1 answer

Log in to vote
0
Answered by 3 years ago

This is a really difficult thing to pull off,the main reason being that GetTouchingParts only works when the part can collide with others,Youd be much better off going with .Touched event or Region3 (tho region3 is incredibly difficult to use properly,even if you use the RotatedRegion3 plugin its not as hard but still something that requires a lot of creativity on how to use it with hitboxes)

Ad

Answer this question