#how to register remoteEvent or remoteFunc

1 messages · Page 1 of 1 (latest)

last root
#

Can anyone show me a small example of the connection between the server plugin and the client plugin

loud obsidian
#

server.Remote and client.Remote

waxen ravine
last root
#

That's why this time I'm asking for an example

grave lagoon
#

im just doing this based off of memory but its something like this


--// SERVER

server.Remote.Commands.MyRoutesName = function(sender : Player, arg1)
  print(`{sender.Name} send {arg1}`)
end

--// CLIENT

client.Remote.Send("MyRoutesName", "this will get printed on the server")
loud obsidian
#

And switch server and client

#

To make it work

#

The other way

last root
#

thanks