The previous script for touching the platform or one-way walls was this: when touching solid or oneway:{ do something until not touching solid } I have separated this into the following: when touching solid:{ do something until not touching solid} when touching one-way and falling:{ do something until not touching one-way}