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