Script on near identical mac won't loop properly

If by "script" you mean the actual Macro, then it going to be very hard for us to be of much help without seeing the actual Macro. If your Macro contains sensitive and/or proprietary info, perhaps you could change that info in a copy of the Macro, and post the copy here.

Please don't use "script" when you mean "macro", since Macros can contain real scripts (AppleScript, JavaScript, Shell Scripts, etc).

What do you mean by "stuck"?
Is this Macro called by another Macro in a loop using Execute Macro?
If so, this could be the issue, as KM will not allow more than 50 macro instances to be running at the same time.

See: