|
| 31 Oct 2013 02:03 AM |
So say that I have a .Chatted event in a LocalScript that fires a RemoteFunction on some other server script in ServerScriptStorage.
Will the RemoteFunctions under ServerScriptStorage get fired and be noticeable by other server scripts? |
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 31 Oct 2013 06:28 AM |
"Will the RemoteFunctions under ServerScriptStorage get fired and be noticeable by other server scripts?"
If you do it right yes. You can connect to the RemoteEvents from anywhere. |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 01:39 AM |
Oh ok :)
Will this work vice-versa? (Server calling RemoteFunction under a LocalScript and LocalScript detecting it) |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 01:51 AM |
yup, using InvokeClient.
~The alpaca of the acting world. |
|
|
| Report Abuse |
|
|
|
| 01 Nov 2013 04:13 AM |
| And InvokeServer for server-detection? |
|
|
| Report Abuse |
|
|
adark
|
  |
| Joined: 13 Jan 2008 |
| Total Posts: 6412 |
|
|
| 01 Nov 2013 08:50 AM |
| Yep yep, but you can't put it in either ServerScriptService or ServerStorage, since the Client can't access any content in either of those services. |
|
|
| Report Abuse |
|
|
| |
|
adark
|
  |
| Joined: 13 Jan 2008 |
| Total Posts: 6412 |
|
|
| 02 Nov 2013 03:29 PM |
| A RemoteFunction is an alternate type of BindableFunction that works between LocalScripts and Script, *instead* of Local <-> Local or Scripts <-> Scripts. |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2013 03:32 PM |
What us a BindableEvent Can I have a wiki page |
|
|
| Report Abuse |
|
|
suremark
|
  |
| Joined: 13 Nov 2007 |
| Total Posts: 6315 |
|
|
| 02 Nov 2013 03:32 PM |
... I wish I knew about these earlier.
My life is so much easier now. |
|
|
| Report Abuse |
|
|
adark
|
  |
| Joined: 13 Jan 2008 |
| Total Posts: 6412 |
|
|
| 02 Nov 2013 05:07 PM |
There is a thing called, oh I don't know, searching by yourself.
http://wiki.roblox.com/index.php/RBX.lua.RemoteFunction_%28Object%29 |
|
|
| Report Abuse |
|
|
|
| 02 Nov 2013 06:34 PM |
I try but I always end up on a useless page like http://wiki.roblox.com/index.php/RBX.lua.InsertService_(Service) That page helps nothing |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 02 Nov 2013 06:36 PM |
| I thought InvokeServer works for LocalScripts and InvokeClient works on server scripts and not vice versa. Correct? |
|
|
| Report Abuse |
|
|
adark
|
  |
| Joined: 13 Jan 2008 |
| Total Posts: 6412 |
|
|
| 02 Nov 2013 09:00 PM |
I really need to write the tutorial for these things. So much to do. <.>
For a RemoteFunction, you InvokeServer FROM a LocalScript, and you InvokeClient FROM a Script. |
|
|
| Report Abuse |
|
|