RemotesHandler V1

–How to use–

				[Client]
				local RemoteHandler = ...
				
				RemoteHandler.Setup()
				
				-- From the "Search" in the module.Remotes
				
				RemoteHandler.Remotes.Search.OnClientEvent:Connect(function(data)
				print(data) - > "lol"
				end)
				
				RemoteHandler.Remotes.Search:FireServer("Hi")
				
				[Server]
				
				local RemoteHandler = ...
				
				RemoteHandler.Setup()
				
				RemoteHandler.Remotes.Search.OnServerEvent:Connect(function(player, data)
				print(player, data) -> player, "Hi"
				end)
				
				RemoteHandler.Remotes.Search.Event:Connect(function(data)
				print(data) -> "Hello"
				end)
				
				RemoteHandler.Remotes.Search:Fire("Hello")
				RemoteHandler.Remotes.Search:FireAllClients("lol")
			
			
				ALWAYS USE ':' not '.' or it will break.

pls improve it

2 Likes

Surprised no one has thought of this before. I’m not exactly sure, but this might be a helpful method of handling networks

is theres any difference ? lol

pls make better and send to me fr :money_mouth_face:

it’s supposed to not make a difference in handling but easier access to remote events

than whats a point of this thread ? what resource are you providing i dont get it

1 Like

This is called a networking module, there are a lot of them for different purposes.

Replica, ByteNet, and Warp are other options.
Frameworks like Knit also have built-in custom networking libraries.