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 » Scripting Helpers
Home Search
 

Re: Script that implemented this callback has been destroyed

Previous Thread :: Next Thread 
Trioxide is not online. 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 is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
31 Jul 2014 08:19 AM
bump
Report Abuse
CounterCrysis is not online. CounterCrysis
Joined: 08 Oct 2007
Total Posts: 832
31 Jul 2014 08:25 AM
It's hard to troubleshoot a script without the script.
Report Abuse
Trioxide is not online. 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 is online. 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 is not online. udayk8139
Joined: 25 Aug 2013
Total Posts: 622
31 Jul 2014 08:52 AM
Your the man ! :3
Report Abuse
Ancestrall is not online. Ancestrall
Joined: 08 Jul 2011
Total Posts: 194
31 Jul 2014 09:08 AM
smn fegt
Report Abuse
Trioxide is not online. 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
Ancestrall is not online. Ancestrall
Joined: 08 Jul 2011
Total Posts: 194
31 Jul 2014 09:10 AM
fall over and hit your head, wake up in wonderland, solution found
Report Abuse
Trioxide is not online. 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
Ancestrall is not online. Ancestrall
Joined: 08 Jul 2011
Total Posts: 194
31 Jul 2014 09:12 AM
i love how you take it up the ass
Report Abuse
Trioxide is not online. 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 is not online. Flylux
Joined: 23 May 2010
Total Posts: 4804
31 Jul 2014 09:31 AM
ur not funny anc
Report Abuse
SN1P3R3D is not online. 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
Ancestrall is not online. Ancestrall
Joined: 08 Jul 2011
Total Posts: 194
31 Jul 2014 11:22 AM
-insert sad face here- you're all bullies.
le find a corner and cris. ;c
Report Abuse
SN1P3R3D is not online. SN1P3R3D
Joined: 10 Nov 2011
Total Posts: 30891
31 Jul 2014 11:32 AM
Go away
Report Abuse
Ancestrall is not online. Ancestrall
Joined: 08 Jul 2011
Total Posts: 194
31 Jul 2014 11:36 AM
no u
Report Abuse
Flylux is not online. Flylux
Joined: 23 May 2010
Total Posts: 4804
31 Jul 2014 04:10 PM
le no
you
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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