Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My ServerInvoke function sometimes sends out TooManyRequests error or just works, how do I fix it?

Asked by 3 years ago

Hello, this issue is ongoing for a few months now and I was trying to fix it a lot of times, but nothing worked, anyone knows any way how to fix it and get rid of the error?

0
Having more detail will help this question. Without it, all we can tell you is that you're invoking the server too much. radiant_Light203 1166 — 3y
0
Yeah, that is the issue, it just invokes too much and I dont know how to make sure it doesnt invoke, the script is this; Canturion 6 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

The script is this;

local worlddeb=true
local bcount=game.ReplicatedStorage.getBadgeCount:InvokeServer()
local badgeCount=bcount.badge
local UniqueTowerCount=bcount.tower

With the 2nd line being the one sending the TooManyRequests error.

Ad

Answer this question