I'm sending an Http Request
and I want it to be sent every second. however since I'm not sure how to use render stepped
with a wait()
I can't accomplish this. I would use while wait() do
but that's not an option since i'm sending a http request constantly but I need to put in an OAuth Token after the script is executed so it will give an error and break the script. Have any ideas?
Nevermind I figured out the pcall return.
You can simply allocate the RBXScriptSignal and use the :Wait()
method, or you can embed the request within the event.
local runService = game:GetService("RunService") local rStepped = runService.RenderStepped while rStepped:Wait() do end
local runService = game:GetService("RunService") runService.RenderStepped:Connect(function() end)