self.Connections[#self.Connections + 1] = self.Object.MouseLeave:Connect(function()
print("time:", tick() - self.lastcalled, "|", self.zID)
self.zID = self.zID + 1
self.lastcalled = tick()
if self.Rotating then
if self.Viewport and not self.Selected and self:Check() then
self.Rotating = false
self._modules.Viewports:StopRotation(self.Viewport)
end
end
end)
As you can see, the print got printed twice and share the same ID even though it shouldn’t
Can someone help me improve or fix it?