Hello, the lost people,
I am working on item interaction for my new game. But the TouchTransmitter remover script got error in the output. I want to fix this ASAP. Hope you can help :>
Script:
local function removeTouchTransmitterFrom(object)
for index, target in pairs(object.Handle:GetDescendants()) do
if target:IsA("TouchTransmitter") then
target:Destroy()
end
end
end
for _, item in pairs(CollectionService:GetTagged("Item")) do
while true do
removeTouchTransmitterFrom(item)
end
end
Output: