Hello, I’m currently making a team invite system where you can request people on your team using the Send Notification future. I was wondering, how can I make the script detect if the player doesn’t respond to the prompt within the 5 Second Duration I have set.
local BindFunction = Instance.new("BindableFunction")
function BindFunction.OnInvoke(response)
InviteRequestResponse = response
print(response)
end
local function RequestTeamate(Player)
StarterGui:SetCore("SendNotification", {
Title = "Teammate Request";
Text = Player.Team.Name.." Team has sent you an invite";
Duration = 5;
Callback = BindFunction;
Button1 = "Yes";
Button2 = "No";
})
end