If conditions (Vector3 plot positions) always returns false

every player in the game has a plot, and inside the plot table, there are minimum and maximum x,y, and z values that a part must be within to be able to place it. here is how that is set:

I then have another function that returns true to the client if the given position is within the plot’s zone. here it is: (the prints are for debugging. it only ever prints within x range by the way.)

does anyone see a glaring bug? here is the code where I utilize this function:

Any help is much appreciated!

1 Like

I would print your minimum and maximum values to see if they’re being calculated correctly, I’d also use >= and <= instead of > and < to be inclusive, otherwise trying to place something right on the edge of the plot would be considered out of bounds.

1 Like

thanks! the problem was that minimum Z was higher than the floor of the plot so I set it to 0.01

1 Like

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