:Once(func) vs <RBXSCRIPTSIGNAL>:Disconenct()

What’s the difference between these?

ConEquip = Tool.Unequipped:Connect(function()
	Hitbox:HitStop()
end)
task.wait(Animation.Length - 0.2)
ConEquip:Disconnect()
Tool.Unequipped:Once(function()
	Hitbox:HitStop()
end)

RBXScriptSignal::Once automatically disconnects the event the first time it fires. Whilst RBXScriptConnection::Disconnect is just the manual way to disconnect the signal


Yes

So both snippets in my case work fine regardless?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.