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 event problem

Previous Thread :: Next Thread 
LightningToaster is not online. LightningToaster
Joined: 17 Sep 2012
Total Posts: 68
01 Apr 2015 11:40 PM
local event=Instance.new'RemoteEvent'
event.Parent=script.Parent
event.Name='LightningBolt'
event.OnServerEvent:connect(function(player,pos)end)--in ServerScriptService

game.ServerScriptService.LightningBolt:FireServer(position)--in workspace


this works in studio but not online, can someone help please?
Report Abuse
bojigglesmister2 is not online. bojigglesmister2
Joined: 26 Jun 2011
Total Posts: 1421
01 Apr 2015 11:50 PM
Pretty sure its because when your online, theres a server and the client cant access certain server things like serverscriptservice... Parent the event to replicated storage instead
Report Abuse
LightningToaster is not online. LightningToaster
Joined: 17 Sep 2012
Total Posts: 68
03 Apr 2015 11:20 AM
but its being called from a script in workspace, there is no client involved

I may just make a work around that doesn't use the remote event unless a player needs to call it
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
03 Apr 2015 11:24 AM
I think if you want to fire server, you have to do it from a localscript. I don't think there is much of a point to firing the server from the server. It only works on studio because everything is being run on your computer
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
03 Apr 2015 11:25 AM
You don't understand FE, do you?

Server-Server ☒
Server-Client ☑
Client-Server ☑
Client-Client ☒

You can't pass a signal from the server, to itself. Why would you want to do that, use BindableFunctions or Modules.
Report Abuse
LightningToaster is not online. LightningToaster
Joined: 17 Sep 2012
Total Posts: 68
05 May 2015 02:54 PM
I was trying to make it universal
thanks for the help...I solved the problem another way :P
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