Right now a lot of my code variable declaration looks like this:
--Connections-- local rbDownConn = nil local rbUpConn = nil local lbDownConn = nil local lbUpConn = nil local heartbeat = nil local keyDetection = nil --When equip-- heartbeat = RunService.Heartbeat:Connect(makeSpread) --When unequip-- if heartbeat then heartbeat:Disconnect() end
I connect them all in .equip and disconnect in .unequip of my tool. But... should I even do this? Is this something ok to do or I can just use :connect and expect tool internal to clear connections on unequip?
Just something I can't find info about