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: What would happen if you tried to use RemoteEvents...

Previous Thread :: Next Thread 
CrakTehRaven is not online. CrakTehRaven
Joined: 05 Mar 2010
Total Posts: 1471
11 Jan 2016 03:25 AM
With two normal scripts? I tried running a small thing, and it seemed like it worked (somewhat), although the arguments were super wonky and it led to some hilarious things.


So what actually happens when you try to use RemoteEvents with two sever scripts? Or is just 100% unpredictable because it's not designed for that?


Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Jan 2016 03:26 AM
You mean "InvokeServer" from a normal script or use "OnServerInvoke" from 2 normal scripts?
Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
11 Jan 2016 03:26 AM
They run at the same time.
Report Abuse
CrakTehRaven is not online. CrakTehRaven
Joined: 05 Mar 2010
Total Posts: 1471
11 Jan 2016 03:27 AM
I was attempting to call :FireServer in a normal script.


Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Jan 2016 03:27 AM
It wouldn't work, it should give you an error.
Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
11 Jan 2016 03:27 AM
I would assume at least.. Never tested it, but I assume they would both run at the same time, or it would only pick one script to run.
Report Abuse
CrakTehRaven is not online. CrakTehRaven
Joined: 05 Mar 2010
Total Posts: 1471
11 Jan 2016 03:29 AM
It..actually didnt give me an error.

It ran, but basically arguments would be returned in the wrong order, and some really weird interactions began to happen.




Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
11 Jan 2016 03:29 AM
JW, why would you need more than one server script?

The reason server scripts need to call the player as the first argument is because it needs to know which function to fire. Roblox did not design a way to tell which server function to fire...
Report Abuse
CrakTehRaven is not online. CrakTehRaven
Joined: 05 Mar 2010
Total Posts: 1471
11 Jan 2016 03:31 AM
To be honest, I don't need it for any real reason, I was sort of just throwing things together at 3:00 AM and finding out what would happen. I was surprised that it didn't error on me, so I tried to discover what it would even do, turns out, I have no idea, it seemed arbitrary (it shouldnt have even worked in the first place, apparently?)


Report Abuse
Robertoman is not online. Robertoman
Joined: 10 May 2007
Total Posts: 6369
11 Jan 2016 03:34 AM
Try again, but this time designate a parameter for a specific function and see if that function will work. lol You have me wondering now, though it serves no purpose.
Report Abuse
CrakTehRaven is not online. CrakTehRaven
Joined: 05 Mar 2010
Total Posts: 1471
11 Jan 2016 03:38 AM
Well, to be explain what I did, I set up a touched event with a brick and had it return arguments concerning the player into another script through :FireSever and had those objects printed in the other script.

Basically what would happen would be

a) The thing would work fine
b) The order of the arguments would be off completely and wouldn't make any sense whatsoever and continued tinkering only led to more scratching of heads.

Tbh im not sure if my sleep deprived brain can take much more of it


Report Abuse
Egzekiel is not online. Egzekiel
Joined: 10 Jan 2011
Total Posts: 1079
11 Jan 2016 04:12 AM
In case you do that just use a bindable event.
I'm saying that but i never used it.


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