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

"19:00:02 - - Remote event invocation queue exhausted for OnServerEvent" fix?

Asked by 3 years ago

Hello developers!

I tried to build a SERVERSIDE, But the gui was messy. Please do not worry about that. So, the problem is I got a error saying the following:

19:00:02 - - Remote event invocation queue exhausted for OnServerEvent; did you forget to implement OnServerEvent?

If you don’t know what script I’m into, here it is.

--// Instances
local TextBox = Instance.new("TextBox")
local TextButton = Instance.new("TextButton")
local ScreenGui = Instance.new("ScreenGui")
local TextLabel = Instance.new("TextLabel")
local RemoteEvent = Instance.new("RemoteEvent")
local Player = game.Players.Naderssrr --// Or type in local Player!
--// Properties
ScreenGui.Parent = Player.PlayerGui
ScreenGui.Name = "dreams"

TextBox.Text = "Execute requires!"
TextBox.Parent = ScreenGui
TextBox.Name = "EnterRequires"
TextBox.Size = UDim2.new(0, 100, 0, 100)
TextBox.Position = UDim2.new(.5, -50, .5, -50)
TextBox.Visible = true

TextLabel.Text = "Naderssrr Serverside"
TextLabel.Name = "Title"
TextLabel.Parent = ScreenGui
TextLabel.Size = UDim2.new(0, 100, 0, 100)
TextLabel.Position = UDim2.new(.8, -50, .8, -50)
TextLabel.Visible = true


RemoteEvent.Name = "OnServerEvent"
RemoteEvent.Parent = ReplicatedStorage
wait()

--// Executor Buttons

TextButton.Parent = ScreenGui
TextButton.Text = "Execute!"
TextButton.Name = "Execute"
TextButton.Size = UDim2.new(0, 100, 0, 100)
TextButton.Position = UDim2.new(.3, -50, .3, -50)
TextButton.Visible = true
while true do
TextButton.MouseButton1Click:connect(function()
RemoteEvent:FireServer(TextBox.Text)
end)
wait()
end

Please help me. Most of the times I get errors when building a script.

1 answer

Log in to vote
0
Answered by 3 years ago

You added a while true do, which is unnecessary and will cause an error, instead replace:

while true do
TextButton.MouseButton1Click:connect(function()
RemoteEvent:FireServer(TextBox.Text)
end)
wait()
end

with:

TextButton.MouseButton1Click:connect(function()
    RemoteEvent:FireServer(TextBox.Text)
end)

Tell me if this works :)

0
The MouseButton1Click function didn’t work. Naderssrr 15 — 3y
0
Any errors shown? AntoninFearless 622 — 3y
0
No, but when I tried to press the execute button, the command didn’t execute. I was making a executor. Naderssrr 15 — 3y
Ad

Answer this question