#bit confused on how to make functions stop connecting..
1 messages · Page 1 of 1 (latest)
local connection
connection = button.MouseButton1Down:Connect(function()
connection:Disconnect()
end
shrimple
that's how you make it more global
1 messages · Page 1 of 1 (latest)
so i want the MouseButton1Down connection happening in that for loop in the bottom to go away when closeDialogue or changeDialogue happen but im not really sure how
im sure it has something to do with :Disconnect() but idk how to call it since the function is local
local connection
connection = button.MouseButton1Down:Connect(function()
connection:Disconnect()
end
shrimple
that's how you make it more global