Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Do I need to create a new RemoteFunction with each new listener?

Asked by
Zerio920 285 Moderation Voter
8 years ago

My game is filteringenabled, so I'm using remoteevents and remotefunctions for communication between the server and client. I have a brick and a tool. When I use the tool to click on the brick, a remotefunction is activated which tells the brick to explode and leave two clones. When I try using the tool on the clones, I get the error "Script that implemented this callback has been destroyed" in the tool's script. Thus, I'm assuming that I can't activate the function since its original listener has been destroyed. Do I need to create a new remotefunction with each clone that spawns, or is there some way I can get the clones to listen for that one function and have everything work as it should?

Answer this question