Hello,
so basically im making a super move for my game which is an anime soccer game.
i made scripts that detect the magnitude beetween the player and the enemy (which is another player). but everytime i test it there is this error:
Remote event invocation queue exhausted for ReplicatedStorage.Events.Magnitude2; did you forget to implement OnClientEvent? (8 events dropped)
and it appears non stop with the same writing but with (16 events dropped) (32 events dropped) and it continues to multiply-
here the scripts:
script in server script service:
local rep = game.ReplicatedStorage
local magn1 = rep:WaitForChild("Events"):WaitForChild("Magnitude")
local magn2 = rep:WaitForChild("Events"):WaitForChild("Magnitude2")
magn1.OnServerEvent:Connect(function(plr, mag)
magn2:FireClient(plr, mag)
end)
local script in starter character scripts:
while true do
wait(0.21)
local Rep = game.ReplicatedStorage
local Players = game:GetService('Players')
local LocalPlayer = Players.LocalPlayer
for _,Player in next, Players:GetChildren() do
local character = Player.Character
if character and character.Parent and Player ~= LocalPlayer then
local Magnitude = (LocalPlayer.Character.HumanoidRootPart.Position - character.HumanoidRootPart.Position).magnitude
if Magnitude < 25 then
Rep.Events.Magnitude:FireServer(LocalPlayer, Magnitude)
end
end
end
end
how can i solve it?
i will appreciate every help u can give to me