Hello! I’m trying to make a freeze tag game but I can’t get figure out how to track multiple hitboxes at once. I have all hitboxes in a folder how would I achieve this? I’ve already made a for I,v of all the hitboxes in that folder with a touch but it does not seem to work. Can anyone help?
for i, hitbx in pairs(game.Workspace.HitBoxes:GetChildren()) do
print("stage 0")
hitbx.Touched:Connect(function(hit)
print("stage 1")
print(hit.Parent.Name)
if hit.Parent:FindFirstChild("HumanoidRootPart") then
print("stage 2")
if table.find(Hunters, hit.Name) then
print("Stage 3")
end
end
end)
end