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
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: REMOTE EVENTS/FUNCTIONS

Previous Thread :: Next Thread 
mrmcmuffinz123 is online. mrmcmuffinz123
Joined: 04 Aug 2014
Total Posts: 810
20 Aug 2017 03:38 PM
I know how to script with filtering enabled but the only thing i don't understand is the difference between remote events and function. If somebody could explain to me Why you would either use a remote event rather than a function or the other way around also what each remote thingy does different. If you could sum those up I would gladly appreciate it!


repeat print("Muffin is cool") until Muffin_is_way_too_cool == true
Report Abuse
Ajastra is not online. Ajastra
Joined: 01 Aug 2017
Total Posts: 1461
20 Aug 2017 03:41 PM
RemoteEvents do not yield and cannot be used to return a value, while RemoteFunctions do yield and can return a value.

Always use a RemoteEvent unless you need to use a RemoteFunction (which should be rare).

For example, say you need to get the client's screen resolution for some reason, which you shouldn't really need to do. You could use a RemoteFunction to return the resolution back to the server.

RemoteEvents are used for almost everything, such as purchasing an item from a shop or redeeming a Twitter code or sending the game state info to the client.


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