Conditions
Array - For Each Element
SubEvent Conditions
System - While
System - Compare two values - IndexOf(Array.At.CurX) != LastIndexOf(Array.At.CurX)
Action
Array - Delete LastIndexOf(Self.At.CurX)
Edit: Changed Self/Array in the expression, since you can't use self in a system condition, formatting, sub event for two the two loops. Yikes made a lot of mistakes actually, glad you understood