Tried adding debounces, tried taking out the remote from a function it was connected to, I don’t know what I can do.
Are you creating a connection within a connection?
Event1.Event:Connect(function()
Event2.Event:Connect(function()
end)
end)
For each time you are firing something, you are creating a new connection. Either disconnect this connection using :Disconnect
, use :Once
instead of :Connect
(for the one inside), or move the second connection out of the first.
I’ve just edited the text with script, check it out.
I’ve tried Once, but unfortunately it would only work once
This connection is inside the other connection. When you don’t want to use the connection anymore, you can use :Disconnect()
.
local connection = info.Chatted:Connect(somethingHere)
--as an example, disconnect after 3 seconds
task.wait(3)
connection:Disconnect()
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.