Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.