OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 26 Mar 2015 07:31 AM |
This is in a localscript,
if forward.Value == true then game.ReplicatedStorage.Functions.Forward:InvokeServer(workspace.SEA["Ship"..player.Name]) end
No output. It is in PlayerGui and happens when a user presses W or up arrow key. In the remote function I have
local functions = require(RS.Scripts.Main) local move = functions.forward
local RemoteFunction = script.Parent
RemoteFunction.OnServerInvoke = function(ship) move(ship) end
And yeah. I know that what the function does works; I tried it without remote functions and it did work, but won't replicate cuz filteringenabled. Please help, thanks. |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2015 07:57 AM |
RemoteFunction.OnServerInvoke = function(ship) move(ship) return true end |
|
|
| Report Abuse |
|
|
|
| 26 Mar 2015 08:05 AM |
And before you continue, I suggest learning when to use a RemoteFunction http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial |
|
|
| Report Abuse |
|
|