This remote event is working fine until my game loop resets.
local function gone(player, n)
The problem comes after the game loop deletes the remote event “takeperson” from replicated storage and then at the end of the loop uses instance.new to create a new identical “takeperson” remote event. After it recreates the remote event the listener no longer does the code in the gone function. I think this is because the function is only connected to the original takeperson remote event and after it gets deleted the first time it permanently becomes disconnected.
Is there any way to reconnect the remoter event after “takeperson” is recreated with instance.new in ReplicatedStorage?
I actually think it would be way more logical to just use an if statement to determine if the listener should do the stuff in the function anyways, but for some reason in the past, if statements just straight up didn’t work or I was not implementing them right. This was just a workaround that I thought could possibly work.