local function activateCustomer(friendCustomer)
local connections = {}
local customerFolder = friendCustomer.Parent
local customerActivationPrompt = friendCustomer.HumanoidRootPart.InteractPrompt
local customerStatusGui = friendCustomer.CustomerStatusGui
local statusLabel = customerStatusGui.StatusLabel
friendCustomer:GetAttributeChangedSignal(npcStatusAttributeName):Connect(function()
statusLabel.Text = friendCustomer:GetAttribute(npcStatusAttributeName)
for _, connection in connections do
connection:Disconnect()
end
end)
changeStatusForNpcs(customerFolder, "Waiting For Waiter")
connections["WaitForCustomer"] = customerActivationPrompt.Triggered:Wait()
changeStatusForNpcs(customerFolder, "Choosing Dish")
connections["ANotherConnection"] = customerActivationPrompt.Triggered:Wait()
changeStatusForNpcs(customerFolder, "NOT Choosing Dish")
end
here is what i tried but it didnt work since .Triggered:Wait() isnt a connection