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: Client not receiving a remoteevent's event

Previous Thread :: Next Thread 
Holy_Doge is not online. Holy_Doge
Joined: 08 Feb 2012
Total Posts: 1968
08 Jul 2016 11:40 PM
Title should say it all, but here is the *paraphrased* script


-- ServerScript
function FireEvent()
RemoteEvent:FireAllClients("Message")
end

--Localscript

RemoteEvent.OnClientEvent:connect(function(stuff)
print(stuff)
end)

Output : Nothing related to the remoteevents


Report Abuse
Holy_Doge is not online. Holy_Doge
Joined: 08 Feb 2012
Total Posts: 1968
08 Jul 2016 11:40 PM
Add a FireEvent() in there, I forgot to do add that


Report Abuse
sparker22 is not online. sparker22
Joined: 11 Mar 2010
Total Posts: 846
08 Jul 2016 11:42 PM
Have you ran a print before and fire the RemoteEvent firing in your function. It could be either
1. Your remote even isn't firing
2. You didn't attach a onclient even to the right remote event object.
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
08 Jul 2016 11:44 PM
You didn't call the function.


Report Abuse
sparker22 is not online. sparker22
Joined: 11 Mar 2010
Total Posts: 846
08 Jul 2016 11:46 PM
@ RecurringNightmare

Read the second post. /derp
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
08 Jul 2016 11:48 PM
And? Read the third post.


Report Abuse
sparker22 is not online. sparker22
Joined: 11 Mar 2010
Total Posts: 846
09 Jul 2016 12:42 AM
@RecurringNightmare

'Add a FireEvent() in there, I forgot to do add that'

-- ServerScript
function FireEvent()
RemoteEvent:FireAllClients("Message")
end
FireEvent()
--Localscript

RemoteEvent.OnClientEvent:connect(function(stuff)
print(stuff)
end)

Doing as he said, he did call the function.

Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
09 Jul 2016 12:45 AM
uh-huuuuh

@holy
did you test it after calling the function? are you in play solo or a test server


Report Abuse
Holy_Doge is not online. Holy_Doge
Joined: 08 Feb 2012
Total Posts: 1968
09 Jul 2016 12:47 AM
@Rec

I tested in game mode (As in I clicked play, not in studio mode)


Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
09 Jul 2016 12:48 AM
press f7 and check output in the client window


Report Abuse
Everesty is not online. Everesty
Joined: 08 Oct 2009
Total Posts: 6156
09 Jul 2016 12:48 AM
"I tested in game mode (As in I clicked play, not in studio mode)"

Then the client hasn't yet connected to the game and/or hasn't connected to the RemoteEvent yet.
Report Abuse
Holy_Doge is not online. Holy_Doge
Joined: 08 Feb 2012
Total Posts: 1968
09 Jul 2016 12:49 AM
@Spark

Is there a way to make it fire, because this is really annoying me


Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
09 Jul 2016 12:49 AM
if you meant you clicked play on the website, my apologies - i posted that thinking you meant in studio mode. i blame the fact that it's 2 am


Report Abuse
Holy_Doge is not online. Holy_Doge
Joined: 08 Feb 2012
Total Posts: 1968
09 Jul 2016 12:58 AM
@Ever

Is there a way to delay the server until the client connects?


Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
09 Jul 2016 01:00 AM
use a playeradded event


Report Abuse
Holy_Doge is not online. Holy_Doge
Joined: 08 Feb 2012
Total Posts: 1968
09 Jul 2016 01:01 AM
Mk lemme do that


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