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.
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 :)