Hello ,
I have problem with disconnecting event . Here is what I mean
for i , newchild in pairs(Collection:GetTagged("Mob")) do
--- blah blah
end
from the script above I loop thorugh tagged part called mob . Now the questions is if the newchild is dead , how can I disconnect event only for it.
this is what I currently have
DeadCon = newchild:WaitForChild("Humanoid").Died:Connect(function()
RunServCon:Disconnect()
ToucedCon:Disconnect()
task.wait(2)
Collection:RemoveTag(newchild , "Mob")
DeadCon:Disconnect()
end)
the problem is rn that its disconnecting all instead dead one . Any clue for this ?? . Any help is appriciated
If you need anything feel free to say it to me