–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