gergy008
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 7039 |
|
|
| 07 Feb 2016 10:34 PM |
I used to be able to use InvokeServer but that's now client side only.
How can I invoke a RemoteFunction, that's on the server, from the server?
Play today! So much fun the more people that join: http://www.roblox.com/games/2047642/NEW-Build-A-Fortune-v0-9-6-Fixes |
|
|
| Report Abuse |
|
|
rvox
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 5380 |
|
| |
|
gergy008
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 7039 |
|
|
| 07 Feb 2016 10:35 PM |
It is, a little bit. The client and the server share the same function. The client should be able to execute it, and so should the server if required.
It used to work, but stuff changed.
Play today! So much fun the more people that join: http://www.roblox.com/games/2047642/NEW-Build-A-Fortune-v0-9-6-Fixes |
|
|
| Report Abuse |
|
|
|
| 07 Feb 2016 10:35 PM |
I wonder if you can InvokeClient(null, ...)
But anyways, you don't need to do this, as it is already on the server. Use bindable event or function. If you want to go the extra step, create a module script and publish it so others can enjoy. |
|
|
| Report Abuse |
|
|
gergy008
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 7039 |
|
|
| 07 Feb 2016 10:37 PM |
Ah module scripts scare me a little bit. Not quite sure how they work yet but I'm sure I'll figure it out from the wiki.
I have so much good code in this game I would love to share, but don't exactly know how. Like my custom chat.
Play today! So much fun the more people that join: http://www.roblox.com/games/2047642/NEW-Build-A-Fortune-v0-9-6-Fixes |
|
|
| Report Abuse |
|
|
gergy008
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 7039 |
|
|
| 07 Feb 2016 10:40 PM |
The function in question is a cash function.
The client uses the function to spend money on the server, but say they place the object wrong, the server uses the same function to add the funds back to the clients wallet.
I guess I could put it in a function and have the remotefunction call the function and the server just call the function as normal. It feels hacky.
Play today! So much fun the more people that join: http://www.roblox.com/games/2047642/NEW-Build-A-Fortune-v0-9-6-Fixes |
|
|
| Report Abuse |
|
|
gergy008
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 7039 |
|
|
| 08 Feb 2016 04:57 PM |
Managed to solve my issue. For the sake of everyone's sanity if they had the same issue (I highly doubt it) but old versions of roblox didn't throw an error when using the function, they just ignored it. It's become an issue now because the game has decided to stop scripts that call remotefunctions from the server like I was doing.
Play today! So much fun the more people that join: http://www.roblox.com/games/2047642/NEW-Build-A-Fortune-v0-9-6-Fixes |
|
|
| Report Abuse |
|
|