#Disabling a event - function?
10 messages · Page 1 of 1 (latest)
local connection = part.Touched:Connect(Func1)
if After_1506_Lines_Later then
connection:Disconnect()
end
you can do that? :O
that's helpful
Both.
When you connect an event to a function, it returns connection.
You can :Disconnect() that connection.
You can also do path.Touched:Once(Func1) to only have the function disconnect after running once.
Ooh I didnt know about the :Once thing