generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Invoking RemoteFunction from the server.

Previous Thread :: Next Thread 
gergy008 is not online. 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 is not online. rvox
Joined: 18 Feb 2011
Total Posts: 5380
07 Feb 2016 10:34 PM
counterintuitive
Report Abuse
gergy008 is not online. 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
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image