How to Test Directions With the Player Coordinate Device?

So, I’ve just made a MAJOR breakthrough in actually replicating Eyes from Roblox Doors. The problem? It’s kinda memory-heavy and it requires a player coordinate device, which is my LEAST favorite device, as it’s so dang confusing. Is there a way you can use a player Coordinate device to test which direction you’re going?

There might be a way to check whether certain coordinates are going up in number or down :thinking:

quite a tricky question you’ve asked though

1 Like

You have to store the player’s coordinates to properties (using blocks, not the built in method on the device), then after the player moves check if the x or y increased or decreased.

Yeah, I think I’ve bitten off more than I can chew.

I knew about the properties, (the method wouldn’t work without it) but how would you do the check?

Add this block code to a coordinate device.

Does this help?

2 Likes

Diagonal movement will make this code bug out.

1 Like

That is AMAZING! THANK YOUUUUU

you do know it does work if they move diagonally right?

Unfortunately, @PhoenixWander is right. Depending on what you need this for, you may need a more advanced system.

I dont need a top-notch foolproof system, ill take whatever i can get

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.