If I had a table such as:
local TableExample= {game.Workspace.DummyA.Torso, game.Workspace.DummyB.Torso}
Could it be possible to make it so the script can detect if the torsos in the table are touched?
If I had a table such as:
local TableExample= {game.Workspace.DummyA.Torso, game.Workspace.DummyB.Torso}
Could it be possible to make it so the script can detect if the torsos in the table are touched?
for _,v in pairs(TableExample) do
v.Touched:Connect(function(hit)
print(v.Parent.Name .. "'s Torso was touched by " .. hit.Name)
end)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Yes