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

I have a Remote Event error in my script, How to fix it?

Asked by 4 years ago
Edited 4 years ago

I'm making a hat script but this one error prevents from the audio visualizer working. But everything else works.

117:41:01.235 - Remote event invocation queue exhausted for Players.antoniorigo4.PlayerGui.RemoteEvent; did you forget to implement OnServerEvent? (16384 events dropped)

Its kinda of a weird script that no one understands. ModuleScript code:

01local module = {}
02return function(player1)
03  local player = game.Players[player1]
04    local value = Instance.new("StringValue",script)
05    value.Value = player1
06value.Name = "player"  
07    local remote = Instance.new("RemoteEvent",player.PlayerGui)
08    local ls = script.LocalScript
09    ls.rememberthispls.Value = script
10    wait(5)
11    ls.Parent = player.PlayerGui
12    ls.Disabled = false
13    --start serverscript
14    local cha = player.Character
15cha.Humanoid.Health = math.huge
View all 81 lines...

LocalScript: Meant to handle the playbackloudness. Disabled at default until the module script enables it again and parents it to the playergui

01wait(3)
02local player = game.Players.LocalPlayer
03local character = player.Character
04local sound = character.Head:WaitForChild("Sound")
05sound.Looped = true
06local requirethis = script.rememberthispls.Value
07local remote = requirethis:WaitForChild("RemoteEvent")
08 
09--[[remote.OnClientEvent:Connect(function(macaroni,id)
10    print(macaroni)
11    print(id)   
12    sound.SoundId = "rbxassetid://"..id
13    sound:Play()
14end)]]
15--[[player.Chatted:Connect(function(msg)
View all 23 lines...

EventController: Probably the culprit in the scripting error. Vital to controlling the remoteevent and bindable event(so the module script can fire it because it cannot fire a remote event)

01wait(2)
02script.Parent.LocalScript.rememberthispls.Value = script
03local remote = game.Players[script.Parent.player.Value]:WaitForChild("RemoteEvent")
04local bind = script.Parent.ClientFire
05remote.OnServerEvent:Connect(function(player,value,rawvalue)
06    print(value)
07    print(player)  
08    script.Parent.Color.Loudness.Value = rawvalue
09    script.Parent.Color.Value = Color3.new(value/math.random(2,5),value/math.random(2,5),value/math.random(2,5))
10 
11end)
12local DataTosend = script.Parent.LocalSender
13DataTosend.IdSending.Changed:Connect(function()
14    remote:FireClient(DataTosend.PlayerSending.Value,DataTosend.IdSending.Value)
15end)
16--[[bind.Event:Connect(function(player,id)
17        remote:FireClient(player,id)
18end)--]]
19--    remote:FireClient(player,"macaroniman",soundid)

Other assets beside scripts Color = color3value Event = BindableEvent player = created by the module script but the module script wont change the value for some reason or even create the object RemoteEvent = created by the module script in the playergui so the local script can handle it but wont work.

Someone please help me in this thread. Rarely anybody replies to my threads. This is the Script I use to run the modulescript

1wait(3)
2local mod = require(5376277920) mod("antoniorigo4")
0
Eek, firing a remote in a while loop is a nono. uhi_o 417 — 4y
0
how about firing it in a for = 1,math.huge do loop antoniorigo4 117 — 4y
0
youre joking right zadobyte 692 — 4y
0
darn it guys can you just help me find a working alternative. antoniorigo4 117 — 4y
0
darn it guys can you just help me find a working alternative. antoniorigo4 117 — 4y

1 answer

Log in to vote
0
Answered by
raid6n 2196 Moderation Voter Community Moderator
4 years ago

It means you're firing the remote and nothing is receiving. So if you have a loop to fire an event and no OnServerEvent or OnServerInvoke, it will give you this error. maybe on the local script, remove the note

0
Do you mean lua comments? antoniorigo4 117 — 4y
0
yes sorry raid6n 2196 — 4y
0
line 9 on the local script raid6n 2196 — 4y
0
Im still getting errors 8:09:13.675 - Remote event invocation queue exhausted for Players.antoniorigo4.PlayerGui.RemoteEvent; did you forget to implement OnServerEvent? (64 events dropped) antoniorigo4 117 — 4y
View all comments (10 more)
0
hm raid6n 2196 — 4y
0
did you remove the entire note or just make the comment a code raid6n 2196 — 4y
0
I removed the comments. antoniorigo4 117 — 4y
0
oh no should i try uncommenting the notes antoniorigo4 117 — 4y
0
yes raid6n 2196 — 4y
0
make it part of the code but not a xomment raid6n 2196 — 4y
0
sure ill try antoniorigo4 117 — 4y
0
alr raid6n 2196 — 4y
0
Still doesn't work the event is still exhausting antoniorigo4 117 — 4y
0
hm raid6n 2196 — 4y
Ad

Answer this question