Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 31 Jul 2014 07:24 AM |
RemoteFunctions yay.
Output: Script that implemented this callback has been destroyed Error is serverside. How do I prevent this?
I create RemoteFunctions with a server side script and use them for server -> client communication.
When the player respawns, that output pops up. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 31 Jul 2014 08:25 AM |
| It's hard to troubleshoot a script without the script. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 31 Jul 2014 08:49 AM |
| I told you when it happens and what I did to create the error. You don't need the script. |
|
|
| Report Abuse |
|
|
As8D
|
  |
| Joined: 24 Dec 2009 |
| Total Posts: 2907 |
|
|
| 31 Jul 2014 08:49 AM |
Well - I >NEVER< want to have RemoteFunctions for server->client. First of all, your script is yielded if the client fiddles with your callback-function. >NEVER< trust the client. Ever.
I suggest doing a workaround using RemoteEvents. Since LocalScripts are bound to be removed sometime (reset or such).
Note that RemoteEvent.On[Server/Client]Event acts weird with :wait(), so you need to assign the event signal to a variable, then check if the arguments passed to the event matches what you want - if it does, disconnect the event signal and return the arguments, something like this:
function waitForEvent(event, firstParam) local res local ev = event:connect(function(first, ...) if type(first) == type(firstParam) and first == firstParam then res = {...} end end) repeat wait(1/60) until res return unpack(res) end
waitForEvent(RemoteEvent.OnServerEvent, game.Players.Player1)
That should work ;P -As |
|
|
| Report Abuse |
|
|
udayk8139
|
  |
| Joined: 25 Aug 2013 |
| Total Posts: 622 |
|
| |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 31 Jul 2014 09:08 AM |
| Any other solutions than a weird ass script which As8D won't explain to me properly? |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2014 09:10 AM |
| fall over and hit your head, wake up in wonderland, solution found |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 31 Jul 2014 09:11 AM |
| I love it how people are trying to be funny. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2014 09:12 AM |
| i love how you take it up the ass |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 31 Jul 2014 09:16 AM |
| I love it how people are trying to be funny.[2] |
|
|
| Report Abuse |
|
|
Flylux
|
  |
| Joined: 23 May 2010 |
| Total Posts: 4804 |
|
| |
|
SN1P3R3D
|
  |
| Joined: 10 Nov 2011 |
| Total Posts: 30891 |
|
|
| 31 Jul 2014 10:37 AM |
Did you try deleting the script
Jk idk wat do |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2014 11:22 AM |
-insert sad face here- you're all bullies. le find a corner and cris. ;c |
|
|
| Report Abuse |
|
|
SN1P3R3D
|
  |
| Joined: 10 Nov 2011 |
| Total Posts: 30891 |
|
| |
|
| |
|
Flylux
|
  |
| Joined: 23 May 2010 |
| Total Posts: 4804 |
|
| |
|