Resultado da Busca
14 de mar. de 2022 · Learn what :Disconnect () does and when to use it in Roblox scripting. See examples of how to disconnect events, such as Part.Touched, to avoid memory leaks and improve performance.
- How to disconnect a function
The Connect () function, if I recall, returns an object,...
- Events
If you connect a function to an event but don't want the...
- Disconnecting functions
Basically what you want to do with the Disconnect function...
- RBXScriptConnection:Disconnect
Disconnects the connection from the event.
- How to disconnect a function
24 de jun. de 2020 · My main guess is that it’s to disconnect a function from an event. You have just answered your own question. That is what it does. Say for instance you have a part that kills a player. But you only want the part to kill one player.
10 de mar. de 2023 · By using :Disconnect(), you’re essentially telling the event listener to stop listening for the event and to disconnect itself from the event.