Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

did you forget to implement OnServerEvent?

Ok so i tried making some visualizer in a mainmodule thing and it just came with the error : exhausted for Players.IEntity_303I.PlayerGui.Scripts.NewEvent; did you forget to implement OnServerEvent? (256 events dropped) local script :

game:GetService("RunService").RenderStepped:Connect(function()
script.Parent.NewEvent:FireServer(script.Parent.Object.Visualizer.Sound.PlaybackLoudness)
end) 

Server script :

script.Parent.NewEvent.OnServerEvent:Connect(function(Player,Loud)
	local PlaybackLoudness = Loud * 0.100
	if Player.Character:FindFirstChild("Visualizer") then
		local v = script.Parent.Object.Visualizer:Clone()
		if v then
			v.Parent = Player.Character
			v.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(0,5,0)
			local weld = Instance.new("Weld")
			weld.Part0 = Player.Character.HumanoidRootPart
			weld.Part1 = v
			weld.C0 = Player.Character.HumanoidRootPart.CFrame:Inverse()
			weld.C1 = v.CFrame.Inverse()
			weld.Parent = Player.Character.HumanoidRootPart
		end
	end
end)

1 answer

Hmm... Maybe you are being rate limited? Try editing your local script to not be firing as many events.

On a side note, looking at the instance names, it seems you are building some sort of audio visualizer. May I ask why you need to send remotes to the server for this? There are some ways around what you are doing:

  1. If you are making music play on the server and the audio visualizer on the server, the client doesn't need involvement.

  2. If you are making music play on the client and the audio visualizer appear with the corresponding movements but local to the client, then the server doesn't need involvement.

  3. If you want to keep doing what you are doing now without altering your intended actions, you can use network ownership.

7 comments

0

ok

0

ok

0

ok

0

Just tell me if it works.

0

it happened the samew thing

0

brb i gotta go for a sec

0

its the same error mate

This discussion is preserved as it was. New answers, comments, and votes are closed.