RemoteEvent not firing from Server to Client

As the title suggests, I’m having trouble firing a RemoteEvent from the Server to the Client, and for some reason it’s not firing at all. It used to, but now it suddenly stopped working.

Here’s the code that utilizes it:

Server Script, located in ServerScriptService

        if blocking.Value then
			print("blocked!")
			Block:FireClient(player, STUN_TIME)
			return
		end

Local Script, located in StarterCharacterScripts

Block.OnClientEvent:Connect(function(STUN_TIME)
	print("Stunned!")

	IsStunned.Value = true
	hum.WalkSpeed = 2
	
	wait(STUN_TIME)
	
	IsStunned.Value = false
	hum.WalkSpeed = 12
end)

The output of in this interaction is just printing “blocked!”.

I have tried:

  • Adding :WaitForChild() on the RemoteEvent and necessary variables
  • Finding other scripts that might interfere with the RemoteEvent
  • kept the LocalScript waiting until player and character was loaded
  • Made sure the RemoteEvent was firing to my player

Any help and necessary changes to the code are appreciated and needed.

Try moving localscript to StarterPlayerScripts

well hey that was simpler than i thought lol, thanks a lot

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.