Know when a part is going too far

i made a tween system where the player can move a part to the left and to the right but the part is always going too far so i need to add a way to verify if the part is too far
i tried introducing this but i dont know what to do else

if part.Position.Z >=  then
print("too far")

Try part.Position.Z >= 400 (Z should already just be an integer)

1 Like