"attempt to call a RBXScriptSignal value" In Remote Event

Hello! I’m having an issue with a script.

Tool:WaitForChild("ModifyGui",999999).OnClientEvent(function(AmmoVar) --Errored Line (25)
	if AmmoVar and Hud then	
		AmmoCurrent.Text = tostring(AmmoVar)
	end
end)
  20:26:05.707  Players.GreenBoy657_Gaming.Backpack.Handgun.ClientHandler:25: attempt to call a RBXScriptSignal value  -  Client - ClientHandler:25

This happens when the script runs, not during the event firing. The event can’t fire due to this error. I’m not sure whats going on, does anyone know? This is in a Local Script.

Tool:WaitForChild(“ModifyGui”,999999).OnClientEvent:Connect(function(AmmoVar)
if AmmoVar and Hud then
AmmoCurrent.Text = tostring(AmmoVar)
end
end)
–You didnt Connect the function this should work

3 Likes