promptTable = {}
for r,x in ipairs(script.Parent:GetChildren()) do
if x.Name == "Trash" then
table.insert(promptTable,x.CleanTrash) -- x.CleanTrash is always a ProximityPrompt
end
end
-- promptTable is now filled with a lot of proximity prompts.
function trigger()
end
-- write a line of code here
What I want is, in the line of code here, how do I start the trigger function every single time ANY proximity prompt from promptTable is held down?