Skyline Tails help

How do you make one character be able to walk on something but aother sprite cant? I want skyline tails to be able to walk on clouds but normal tails or normal roboticized tails cant. how do i do that?

@Tailsthefox#1 you can use switches to detect if its robotimized(sorry for bad spelling
havennt seen sonic in a couple years)normal or sky line

can you show me an example?

Screenshot 2020-05-09 at 11.36.47 AM

this works if there separate if there the same it gets more complex